This commit is contained in:
Your Name
2025-04-02 11:50:08 -06:00
parent bf7c0e93a8
commit a1f52daa8a
26 changed files with 1109 additions and 42 deletions
+8 -13
View File
@@ -1,5 +1,5 @@
# Etapa de construcción
FROM node:22-alpine AS builder
# Etapa de desarrollo para ejecutar en watch mode
FROM node:20-alpine
WORKDIR /app
@@ -7,17 +7,12 @@ COPY package*.json ./
RUN npm install
COPY . .
# Asegurarse de compilar el proyecto
RUN npm run build
# Etapa de producción
FROM node:20-alpine AS production
# Puerto expuesto
EXPOSE 3000
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"]
# Comando para iniciar en modo desarrollo
CMD ["npm", "run", "start:dev"]