feat: implement Docker-based deployment and update environment configuration
Some checks failed
/ build-push (push) Has been cancelled

This commit is contained in:
2026-01-02 20:11:26 -05:00
parent 32c4d643d3
commit f7101a4eee
7 changed files with 69 additions and 38 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
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 # Para o envsubst funcionar
COPY --from=builder /app/dist/seu-projeto /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;'"]