remove dev dependencies from development containers

This commit is contained in:
Zimeng Xiong
2026-02-07 09:27:39 -08:00
parent bbb23ca661
commit 06f4c0f537
8 changed files with 64 additions and 40 deletions
+1 -4
View File
@@ -7,7 +7,7 @@ WORKDIR /app/frontend
COPY frontend/package*.json ./
# Install dependencies
RUN npm ci
RUN npm ci && npm cache clean --force
# Copy source code and config files
COPY frontend/ ./
@@ -25,9 +25,6 @@ RUN npm run build
# Production stage
FROM nginx:alpine
# Install envsubst (gettext) so we can template nginx config at runtime
RUN apk add --no-cache gettext
# Copy nginx config template (will be processed at runtime)
COPY frontend/nginx.conf.template /etc/nginx/nginx.conf.template