Pasado el build al dockerfile
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
|
||||
# Stage base para coordinar las fases de build y ejecucion
|
||||
FROM node:22-alpine
|
||||
# Hace falta para la herramienta de migraciones, cuando se publique se
|
||||
# sustituira por el paquete de npm
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json ./package-lock.json ./
|
||||
COPY ./node_modules ./
|
||||
COPY ./src ./src
|
||||
|
||||
COPY tsconfig.json ./
|
||||
|
||||
COPY ./deployment/develop/start.sh ./
|
||||
|
||||
# Copiar el archivo de migrations? porque ahora no creo que se esté lanzando nada
|
||||
COPY ./deployment/database/migrations ./deployment/database/migrations
|
||||
|
||||
RUN npm config set @sf-alvar:registry https://git.savefamilygps.net/api/packages/SaveFamily/npm/ &&\
|
||||
|
||||
@@ -38,12 +38,6 @@ pipeline {
|
||||
cleanRemote: false,
|
||||
execCommand: "ln -sf $BASE_REMOTE_PATH/vault/savefamily/sf-nfc-server/.env $APP_REMOTE_PATH/.env"
|
||||
),
|
||||
sshTransfer(
|
||||
cleanRemote: false,
|
||||
remoteDirectory: "$APP_REMOTE_PATH",
|
||||
sourceFiles: "dist/**/*",
|
||||
excludes: "dist/**/node_modules/**"
|
||||
),
|
||||
sshTransfer(
|
||||
cleanRemote: false,
|
||||
remoteDirectory: "$APP_REMOTE_PATH",
|
||||
@@ -68,7 +62,12 @@ pipeline {
|
||||
sshTransfer(
|
||||
cleanRemote: false,
|
||||
remoteDirectory: "$APP_REMOTE_PATH",
|
||||
sourceFiles: "node_modules/**/*",
|
||||
sourceFiles: "src/**/*
|
||||
),
|
||||
sshTransfer(
|
||||
cleanRemote: false,
|
||||
remoteDirectory: "$APP_REMOTE_PATH",
|
||||
sourceFiles: "tsconfig.json"
|
||||
),
|
||||
sshTransfer(
|
||||
cleanRemote: false,
|
||||
|
||||
Reference in New Issue
Block a user