.
This commit is contained in:
parent
3fdcd196cf
commit
caed4993f6
@ -8,18 +8,24 @@ ARG CACHEBUST=1
|
|||||||
# Establecer el directorio de trabajo
|
# Establecer el directorio de trabajo
|
||||||
WORKDIR /api
|
WORKDIR /api
|
||||||
|
|
||||||
# Copiar los archivos de dependencias
|
#RUN mkdir -p /api/shared
|
||||||
COPY package.json ./
|
#RUN mkdir -p /api/server
|
||||||
COPY tsconfig*.json ./
|
|
||||||
|
|
||||||
# Instalar dependencias
|
# Copiar los archivos de dependencias
|
||||||
|
COPY package.json .
|
||||||
|
COPY tsconfig*.json .
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
||||||
# Copiar el resto del código de la aplicación
|
COPY server .
|
||||||
COPY . .
|
COPY shared .
|
||||||
|
|
||||||
CMD pwd && ls -la
|
CMD pwd && ls -la
|
||||||
|
|
||||||
|
RUN cd ./server && yarn install --production
|
||||||
|
RUN cd ./shared && yarn install --production
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Ejecutar el build
|
# Ejecutar el build
|
||||||
# Si hay un error, mostrarlo en detalle.
|
# Si hay un error, mostrarlo en detalle.
|
||||||
# RUN yarn run build || { echo 'Error during build'; exit 1; }
|
# RUN yarn run build || { echo 'Error during build'; exit 1; }
|
||||||
@ -19,14 +19,13 @@
|
|||||||
"yarn": ">=1.22"
|
"yarn": ">=1.22"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "4.1.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"concurrently": "4.1.0",
|
"concurrently": "4.1.0",
|
||||||
"@types/jest": "^29.5.6",
|
"@types/jest": "^29.5.6",
|
||||||
"eslint-plugin-jest": "^27.4.2",
|
"eslint-plugin-jest": "^27.4.2",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"ts-jest": "^29.1.1",
|
"ts-jest": "^29.1.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
"typescript": "^5.2.2"
|
"typescript": "^5.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"joi-phone-number": "^5.1.1",
|
"joi-phone-number": "^5.1.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"shallow-equal-object": "^1.1.1",
|
"shallow-equal-object": "^1.1.1",
|
||||||
"ts-jest": "^29.1.1",
|
|
||||||
"typescript": "^5.2.2",
|
"typescript": "^5.2.2",
|
||||||
"uuid": "^9.0.1"
|
"uuid": "^9.0.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user