Instalación desde imagen

This commit is contained in:
2026-03-23 16:38:19 +01:00
parent ebd672c7d5
commit d7dddc7170
3 changed files with 4 additions and 9 deletions

View File

@@ -12,6 +12,9 @@ COPY ./start.sh ./
COPY ./deployment/database/migrations ./deployment/database/migrations
COPY ./dist ./dist
RUN npm install
RUN chmod +x start.sh
EXPOSE ${PORT}
ENTRYPOINT [ "./start.sh" ]

View File

@@ -16,13 +16,6 @@ services:
dockerfile: Dockerfile
args:
PORT: "${PORT:-3000}"
develop:
watch:
- path: ./src
action: sync
target: /usr/local/app/packages
- path: ./package.json
action: rebuild
ports:
- ${PORT}:${PORT}
networks:

View File

@@ -1,8 +1,7 @@
#!/bin/sh
cd /home/node/app
ls -la
echo "Lanzando migraciones e iniciando servidor"
npm config set @sf-alvar:registry https://git.savefamilygps.net/api/packages/SaveFamily/npm/
npm install
#npm install
npm run migrate
npm run start