workadventure/pusher/Dockerfile

16 lines
426 B
Docker
Raw Normal View History

2020-12-09 16:36:50 +01:00
FROM thecodingmachine/workadventure-back-base:latest as builder
WORKDIR /var/www/messages
COPY --chown=docker:docker messages .
RUN yarn install && yarn proto
FROM thecodingmachine/nodejs:12
2020-12-09 16:33:59 +01:00
COPY --chown=docker:docker pusher .
2020-12-09 16:36:50 +01:00
COPY --from=builder --chown=docker:docker /var/www/messages/generated /usr/src/app/src/Messages/generated
RUN yarn install
ENV NODE_ENV=production
2020-12-09 16:33:59 +01:00
RUN yarn run tsc
2020-12-09 16:33:59 +01:00
CMD ["yarn", "run", "runprod"]