2020-09-18 18:00:03 +02:00
|
|
|
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
|
|
|
|
|
2020-09-18 17:18:50 +02:00
|
|
|
COPY --chown=docker:docker back .
|
2020-09-24 11:54:00 +02:00
|
|
|
COPY --from=builder --chown=docker:docker /var/www/messages/generated /usr/src/app/src/Messages/generated
|
2020-04-09 11:00:30 +02:00
|
|
|
RUN yarn install
|
|
|
|
|
|
|
|
ENV NODE_ENV=production
|
2020-12-09 16:33:59 +01:00
|
|
|
RUN yarn run tsc
|
2020-04-09 11:00:30 +02:00
|
|
|
|
2020-12-09 16:33:59 +01:00
|
|
|
CMD ["yarn", "run", "runprod"]
|
2020-04-12 15:50:14 +02:00
|
|
|
|