Intento de utilizar nodemon development para desarrollar son estropear production.

This commit is contained in:
2025-08-16 02:18:50 +00:00
parent 1db2f11c19
commit f9bf5f4824
9 changed files with 212 additions and 20 deletions
+3 -2
View File
@@ -5,13 +5,14 @@ FROM node:20.17
ARG NODE_ENV=development
ARG PORT=3000
RUN apt-get update
RUN apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Copia archivos de configuración primero para aprovechar el cache
COPY package*.json ./
# Instala dependencias
RUN apt-get update
RUN npm i
RUN apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Copia el resto de la app
COPY . .