Para portainer

This commit is contained in:
2026-06-23 12:29:53 -05:00
parent ec093544a8
commit c9a28cbb39
7 changed files with 268 additions and 11 deletions
+5 -1
View File
@@ -9,9 +9,13 @@ RUN npm install --production
# Copiar el código del backend
COPY backend/ ./
# Copiar el frontend (servido como estático)
# Copiar el frontend empaquetado (no se monta como volumen en producción)
COPY frontend/ ./frontend/
# Script de entrada: crea datos/carpetas por defecto si no existen en el volumen
RUN chmod +x ./docker-entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["./docker-entrypoint.sh"]
CMD ["node", "server.js"]