Update Dockerfile
All checks were successful
ecommerce frontend/pipeline/head This commit looks good

This commit is contained in:
2026-03-12 05:45:57 +00:00
parent 48d45016da
commit 4e5af08bc1

View File

@@ -8,8 +8,8 @@ ARG VITE_API_BASE_URL
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
RUN npm run build
# Stage 2: Serve with nginx (tiny ~50MB vs ~500MB)
FROM nginx:alpine AS production
# Stage 2: Serve with nginx
FROM mirror.gcr.io/library/nginx:alpine AS production
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80