Fixing Docker build images to add new messages directory

This commit is contained in:
David Négrier 2020-09-18 17:18:50 +02:00
parent 32f92d5c45
commit 7826b2ea8d
4 changed files with 9 additions and 5 deletions

View file

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