From cc47b8e034bf350fe4242c02f06ef09018523413 Mon Sep 17 00:00:00 2001 From: simplifique Date: Fri, 2 Jan 2026 20:25:47 -0500 Subject: [PATCH] fix: correct Dockerfile paths and add comments for clarity --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d226448..b6f5b78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# Estágio 1: Build (Node 16 Bullseye) FROM node:16-bullseye-slim AS builder WORKDIR /app COPY package*.json ./ @@ -6,7 +7,8 @@ COPY . . RUN npm run build -- --prod FROM nginx:alpine -RUN apk add --no-cache gettext # Para o envsubst funcionar -COPY --from=builder /app/dist/seu-projeto /usr/share/nginx/html +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;'"] \ No newline at end of file