This commit is contained in:
David Arranz 2024-09-09 12:08:28 +02:00
parent 903cc108c7
commit f384cb946c
2 changed files with 3 additions and 3 deletions

View File

@ -33,11 +33,11 @@ WORKDIR /www
# Copiar los archivos del build desde la fase anterior
COPY --from=builder /www/client/dist .
COPY --from=builder /www/client/package.json .
# COPY --from=builder /www/client/package.json .
#COPY --from=builder /api/server/tsconfig.production.json ./tsconfig.json
# Instalar sólo las dependencias de producción en el servidor
CMD yarn install --production
# CMD yarn install --production
# Exponer el puerto que la API usa
#EXPOSE 80

View File

@ -81,7 +81,7 @@ services:
environment:
- NODE_ENV=production
volumes:
- shared_frontend:/www/client/dist
- shared_frontend:/www
networks:
- reverse_proxy