force --include=dev in builder stage (Coolify passes NODE_ENV=production as a build arg, which makes npm ci skip devDependencies needed for the build step)

This commit is contained in:
deploy-migration
2026-07-02 14:34:36 +00:00
parent 574267b776
commit 4fed6f979c
+1 -1
View File
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
RUN npm ci --include=dev
COPY . .
RUN npm run build