mirror of
https://github.com/certctl-io/certctl.git
synced 2026-10-03 16:09:02 +02:00
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:
co-authored by
Claude Opus 4.6
parent
13cd4d98ba
commit
86fb140414
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user