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
|
|
|
|
|
2020-11-13 18:00:22 +01:00
|
|
|
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
|
2020-11-13 18:00:22 +01:00
|
|
|
RUN yarn install
|
|
|
|
|
|
|
|
ENV NODE_ENV=production
|
2020-12-09 16:33:59 +01:00
|
|
|
RUN yarn run tsc
|
2020-11-13 18:00:22 +01:00
|
|
|
|
2020-12-09 16:33:59 +01:00
|
|
|
CMD ["yarn", "run", "runprod"]
|