From 95f32a5c950c3848958ebc347d15e2c4b16a7786 Mon Sep 17 00:00:00 2001 From: Dada1981 Date: Thu, 11 Jun 2026 10:02:13 +0200 Subject: [PATCH] build: update npm install commands and prune data Replace npm ci with npm install to improve build compatibility and remove unnecessary data directory copying from the production image. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 68a591f..ec09186 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY package*.json ./ # Install all dependencies -RUN npm ci +RUN npm install # Copy full application codebase COPY . . @@ -24,11 +24,10 @@ WORKDIR /app COPY package*.json ./ # Install only production dependencies (Express, dotenv, @google/genai) -RUN npm ci --only=production +RUN npm install --omit=dev # Copy compiled build resources from builder stage COPY --from=builder /app/dist ./dist -COPY --from=builder /app/data ./data # Expose port (Internal container routing to 3000) EXPOSE 3000