Merge pull request #35 from thecodingmachine/cd
Installing a continuous deployement environement
This commit is contained in:
commit
d826668273
6 changed files with 121 additions and 0 deletions
4
front/.dockerignore
Normal file
4
front/.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
/node_modules/
|
||||
/dist/bundle.js
|
||||
/yarn-error.log
|
||||
/Dockerfile
|
9
front/Dockerfile
Normal file
9
front/Dockerfile
Normal 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 --chown=docker:docker . .
|
||||
RUN yarn install
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV STARTUP_COMMAND_1="yarn run build"
|
||||
ENV APACHE_DOCUMENT_ROOT=dist/
|
Loading…
Add table
Add a link
Reference in a new issue