remove dev dependencies from development containers
This commit is contained in:
+1
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user