Skip to content

Commit e4a1f17

Browse files
author
Noa Limoy
committed
fix(dashboard): ensure devDependencies are installed during Docker build
When NODE_ENV=production is set (common in CI environments), npm ci skips devDependencies by default. This causes the build to fail with "tsc: not found" because TypeScript is listed as a devDependency. Adding --include=dev ensures TypeScript, Vite, and other build tools are always installed regardless of environment configuration. This has no impact on the final image size since devDependencies are only used in the build stage and discarded in the multi-stage build. Fixes #752 Signed-off-by: Noa Limoy <nlimoy@nlimoy-thinkpadp1gen7.raanaii.csb>
1 parent 6ace72a commit e4a1f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM node:18-alpine AS frontend-builder
33
WORKDIR /app/frontend
44
COPY frontend/package*.json ./
5-
RUN npm ci
5+
RUN npm ci --include=dev # Ensure devDependencies are installed regardless of NODE_ENV
66
COPY frontend/ ./
77
RUN npm run build
88

0 commit comments

Comments
 (0)