more work with Dockerfile and dbmate

This commit is contained in:
Lucas Tettamanti
2026-02-04 18:16:32 -03:00
parent f838603877
commit d8a0677912
6 changed files with 119 additions and 5 deletions

View File

@@ -14,5 +14,5 @@ COPY . .
# Puerto de la aplicación
EXPOSE 3000
# Comando de inicio
CMD ["npm", "start"]
# Ejecutar migraciones, seed y luego iniciar la app
CMD ["sh", "-c", "npm run migrate:up && npm run seed && npm start"]