variables de entorno, correcciones de codigo actual, docker file

This commit is contained in:
Your Name
2025-04-02 11:14:45 -06:00
parent 60c75f437f
commit bf7c0e93a8
33 changed files with 190 additions and 47 deletions
+23
View File
@@ -0,0 +1,23 @@
# Etapa de construcción
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Etapa de producción
FROM node:20-alpine AS production
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package*.json ./
EXPOSE 4100
CMD ["node", "dist/main"]