mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-19 02:18:25 +08:00
* feat(ui): multi-stage Docker build without host npm Build frontend assets inside the image with node:24-bookworm, then copy into the existing digest-pinned nginx runtime so docker compose and CI no longer require a host-side dist step. * fix(ui): copy local xlsx package and raise Node heap in Docker build npm ci needs packages/xlsx before install, and vite OOM'd under the default Node heap during the multi-stage image build. * fix(ui): native multi-arch frontend Docker build and layer cache Keep Vite on BUILDPLATFORM so CI does not qemu-emulate Node, pin the builder image, and move the commit ARG after npm ci so dependency layers stay cacheable. --------- Co-authored-by: wizardchen <wizardchen@tencent.com>
20 lines
238 B
Plaintext
20 lines
238 B
Plaintext
# Keep build context lean; multi-stage Dockerfile needs sources, not dist.
|
|
node_modules
|
|
dist
|
|
dist-ssr
|
|
coverage
|
|
logs
|
|
*.log
|
|
.DS_Store
|
|
.vscode
|
|
.idea
|
|
*.local
|
|
*.tsbuildinfo
|
|
package.json.md5
|
|
*.md
|
|
.env
|
|
.env.*
|
|
.gitignore
|
|
.dockerignore
|
|
Dockerfile
|