Primeiro deploy da API NestJS
Some checks failed
Deploy NestJS API / build-and-push (push) Failing after 54s

This commit is contained in:
2026-01-02 13:39:01 -05:00
commit ee498a66c5
18 changed files with 10463 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# Estágio 1: Build
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Estágio 2: Produção
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
EXPOSE 3000
CMD ["node", "dist/main"]