fix: correct Dockerfile paths and add comments for clarity
All checks were successful
/ build-push (push) Successful in 9m16s

This commit is contained in:
2026-01-02 20:25:47 -05:00
parent a4ad87bbaf
commit cc47b8e034

View File

@@ -1,3 +1,4 @@
# Estágio 1: Build (Node 16 Bullseye)
FROM node:16-bullseye-slim AS builder FROM node:16-bullseye-slim AS builder
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
@@ -6,7 +7,8 @@ COPY . .
RUN npm run build -- --prod RUN npm run build -- --prod
FROM nginx:alpine FROM nginx:alpine
RUN apk add --no-cache gettext # Para o envsubst funcionar RUN apk add --no-cache gettext
COPY --from=builder /app/dist/seu-projeto /usr/share/nginx/html
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;'"] 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;'"]