workadventure/back/Dockerfile

12 lines
228 B
Docker

FROM thecodingmachine/nodejs:12
COPY --chown=docker:docker back .
COPY --chown=docker:docker messages ../messages
RUN yarn install
RUN cd /usr/src/messages && yarn install
ENV NODE_ENV=production
CMD ["yarn", "run", "prod"]