workadventure/front/Dockerfile

12 lines
372 B
Docker
Raw Normal View History

2020-04-09 11:00:30 +02:00
# we are rebuilding on each deploy to cope with the API_URL environment URL
FROM thecodingmachine/nodejs:14-apache
2020-04-09 11:00:30 +02:00
COPY --chown=docker:docker front .
COPY --chown=docker:docker messages /var/www/messages
2020-04-09 11:00:30 +02:00
RUN yarn install
2020-09-18 17:51:12 +02:00
RUN cd /var/www/messages && yarn install && yarn proto
2020-04-09 11:00:30 +02:00
ENV NODE_ENV=production
ENV STARTUP_COMMAND_1="yarn run build"
ENV APACHE_DOCUMENT_ROOT=dist/