This commit is contained in:
David Arranz 2024-09-08 13:09:57 +02:00
parent 36113b23e3
commit bbfaf7d528

View File

@ -3,8 +3,6 @@
# BUILD STAGE
FROM node:lts-iron AS builder
ARG CACHEBUST=1
# Establecer el directorio de trabajo
WORKDIR /api
@ -24,12 +22,11 @@ COPY server ./server
RUN cd ./shared && yarn install --production
RUN cd ./server && yarn install --production
ARG CACHEBUST=1
# Ejecutar el build
# Si hay un error, mostrarlo en detalle.
# RUN yarn run build || { echo 'Error during build'; exit 1; }
RUN cd ./server && yarn run build || { echo 'Error during build'; exit 1; }
# FINAL STAGE
#FROM node:lts-iron AS prod