.
This commit is contained in:
parent
ce5f9076cd
commit
9d482951c9
@ -30,6 +30,11 @@ RUN cd ./server && yarn run build || { echo 'Error during build'; exit 1; }
|
|||||||
RUN mkdir -p /api/dist/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/
|
RUN mkdir -p /api/dist/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/
|
||||||
COPY server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/* /api/dist/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote
|
COPY server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/* /api/dist/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote
|
||||||
|
|
||||||
|
# Copiar logo por defecto
|
||||||
|
RUN mkdir -p /api/dist/uploads/images
|
||||||
|
COPY server/uploads/images/* /api/dist/uploads/images
|
||||||
|
|
||||||
|
|
||||||
# FINAL STAGE (Producción)
|
# FINAL STAGE (Producción)
|
||||||
FROM node:lts-iron AS prod
|
FROM node:lts-iron AS prod
|
||||||
|
|
||||||
@ -61,9 +66,6 @@ COPY --from=builder /api/dist .
|
|||||||
COPY --from=builder /api/server/package.json .
|
COPY --from=builder /api/server/package.json .
|
||||||
COPY --from=builder /api/server/tsconfig.production.json ./tsconfig.json
|
COPY --from=builder /api/server/tsconfig.production.json ./tsconfig.json
|
||||||
|
|
||||||
RUN mkdir -p /api/uploads/images
|
|
||||||
COPY server/uploads/images/*.* /api/uploads/images
|
|
||||||
|
|
||||||
# Instalar sólo las dependencias de producción en el servidor
|
# Instalar sólo las dependencias de producción en el servidor
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user