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:
parent
d3bcf718ae
commit
95f32a5c95
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue