From 86fb140414a0662f5894d4de3253cfc3783905e8 Mon Sep 17 00:00:00 2001 From: shankar0123 Date: Thu, 16 Apr 2026 10:00:06 -0400 Subject: [PATCH] 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 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7426f8e..e5d5a2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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