Update Dockerfile
All checks were successful
ecommerce frontend/pipeline/head This commit looks good
All checks were successful
ecommerce frontend/pipeline/head This commit looks good
This commit is contained in:
@@ -8,8 +8,8 @@ ARG VITE_API_BASE_URL
|
|||||||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Stage 2: Serve with nginx (tiny ~50MB vs ~500MB)
|
# Stage 2: Serve with nginx
|
||||||
FROM nginx:alpine AS production
|
FROM mirror.gcr.io/library/nginx:alpine AS production
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
Reference in New Issue
Block a user