partey_workadventure/front/Dockerfile
2020-09-18 17:39:59 +02:00

12 lines
358 B
Docker

# we are rebuilding on each deploy to cope with the API_URL environment URL
FROM thecodingmachine/nodejs:14-apache
COPY --chown=docker:docker front .
COPY --chown=docker:docker messages /var/www/messages
RUN yarn install
RUN cd /var/www/messages && yarn install
ENV NODE_ENV=production
ENV STARTUP_COMMAND_1="yarn run build"
ENV APACHE_DOCUMENT_ROOT=dist/