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.
This commit is contained in:
Dada1981 2026-06-11 10:02:13 +02:00
parent d3bcf718ae
commit 95f32a5c95

View file

@ -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