This commit is contained in:
David Arranz 2024-09-08 19:31:20 +02:00
parent 32b8b1025a
commit bf15ecc4f7

View File

@ -22,22 +22,10 @@ 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 cd ./server && yarn run build || { echo 'Error during build'; exit 1; }
#CMD pwd && ls -la
# FINAL STAGE
#FROM node:lts-iron AS prod
#WORKDIR /api
# Copiar el código compilado de la fase anterior
#COPY --from=builder /api/dist ./dist
# Exponer el puerto que la API usa
EXPOSE 3001