Setting up continuous deployment

This commit is contained in:
David Négrier 2020-04-09 11:00:30 +02:00
parent 6bec8b3703
commit bc7b5fc6c9
6 changed files with 108 additions and 0 deletions

9
front/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
# we are rebuilding on each deploy to cope with the API_URL environment URL
FROM thecodingmachine/nodejs:12-apache
COPY . .
RUN yarn install
ENV NODE_ENV=production
ENV STARTUP_COMMAND_1="yarn run build"
ENV APACHE_DOCUMENT_ROOT=dist/