fix: ensure devDependencies install in Docker build (#9)

npm ci skips devDependencies when NODE_ENV=production leaks from the
host environment into the Docker build. This breaks the frontend stage
because typescript and vite are devDependencies. Adding --include=dev
makes the install hermetic regardless of host environment.

Closes #9

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shankar0123
2026-04-16 10:00:06 -04:00
parent 13cd4d98ba
commit 86fb140414
+1 -1
View File
@@ -6,7 +6,7 @@ FROM node:20-alpine AS frontend
WORKDIR /app/web
COPY web/package.json web/package-lock.json ./
RUN npm ci
RUN npm ci --include=dev
COPY web/ .
RUN npm run build