Files
Vendaweb-portal/Dockerfile
simplifique cc47b8e034
All checks were successful
/ build-push (push) Successful in 9m16s
fix: correct Dockerfile paths and add comments for clarity
2026-01-02 20:25:47 -05:00

14 lines
445 B
Docker

# Estágio 1: Build (Node 16 Bullseye)
FROM node:16-bullseye-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build -- --prod
FROM nginx:alpine
RUN apk add --no-cache gettext
COPY --from=builder /app/dist/sales /usr/share/nginx/html
CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.template.js > /usr/share/nginx/html/assets/env.js && exec nginx -g 'daemon off;'"]