Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ FROM node:22-alpine AS production

WORKDIR /app

# Install only production dependencies
# Install only production dependencies. Drop the lockfile afterwards: it is a
# build-time artifact, not needed at runtime, and if left in the image the
# container scanner reads it and reports devDependency advisories (e.g. a
# critical in handlebars) for packages that are never actually installed here.
COPY package*.json ./
RUN npm ci --omit=dev
RUN npm ci --omit=dev && rm -f package-lock.json

# Copy compiled output from builder
COPY --from=builder /app/dist ./dist
Expand Down
Loading