Avoid costly legacy Docker snapshots while excluding operational docs
PROMPT Docker CI and deployment / verify-and-deploy (push) Successful in 15m34s

This commit is contained in:
2026-10-23 16:32:39 +08:00
parent 1defcf0b0a
commit 228e3dcf94
3 changed files with 9 additions and 9 deletions
+2 -8
View File
@@ -10,14 +10,8 @@ COPY package.json package-lock.json ./
RUN npm ci
FROM dependencies AS build
# Only build inputs belong here: docs and operational notes must not bust this layer.
COPY tsconfig.json next-env.d.ts next.config.ts postcss.config.mjs ./
COPY src/ ./src/
COPY public/ ./public/
COPY scripts/ ./scripts/
COPY tests/ ./tests/
COPY db/ ./db/
COPY seed/ ./seed/
# .dockerignore excludes docs and operational notes without extra legacy COPY snapshots.
COPY . .
RUN npm run typecheck && npm test && npm run build && npm run test:smoke
FROM build AS integration