partey_workadventure/back/Dockerfile

16 lines
406 B
Docker
Raw Normal View History

FROM thecodingmachine/workadventure-back-base:latest as builder
WORKDIR /var/www/messages
COPY --chown=docker:docker messages .
RUN yarn install && yarn proto
2020-04-09 11:00:30 +02:00
FROM thecodingmachine/nodejs:12
COPY --chown=docker:docker back .
COPY --from=builder --chown=docker:docker /var/www/messages/generated /var/www/html/src/Messages/generated
2020-04-09 11:00:30 +02:00
RUN yarn install
ENV NODE_ENV=production
2020-04-11 15:11:22 +02:00
CMD ["yarn", "run", "prod"]
2020-04-12 15:50:14 +02:00