This commit is contained in:
David Arranz 2024-09-08 13:01:29 +02:00
parent 3fdcd196cf
commit caed4993f6
3 changed files with 15 additions and 11 deletions

View File

@ -8,18 +8,24 @@ ARG CACHEBUST=1
# Establecer el directorio de trabajo
WORKDIR /api
# Copiar los archivos de dependencias
COPY package.json ./
COPY tsconfig*.json ./
#RUN mkdir -p /api/shared
#RUN mkdir -p /api/server
# Instalar dependencias
# Copiar los archivos de dependencias
COPY package.json .
COPY tsconfig*.json .
RUN yarn install --production
# Copiar el resto del código de la aplicación
COPY . .
COPY server .
COPY shared .
CMD pwd && ls -la
RUN cd ./server && yarn install --production
RUN cd ./shared && yarn install --production
# Ejecutar el build
# Si hay un error, mostrarlo en detalle.
# RUN yarn run build || { echo 'Error during build'; exit 1; }

View File

@ -19,14 +19,13 @@
"yarn": ">=1.22"
},
"devDependencies": {
"concurrently": "4.1.0"
},
"dependencies": {
"concurrently": "4.1.0",
"@types/jest": "^29.5.6",
"eslint-plugin-jest": "^27.4.2",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.1"
},
"dependencies": {
"typescript": "^5.2.2"
}
}

View File

@ -15,7 +15,6 @@
"joi-phone-number": "^5.1.1",
"lodash": "^4.17.21",
"shallow-equal-object": "^1.1.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"uuid": "^9.0.1"
},