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
5
back/.dockerignore
Normal file
5
back/.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
/dist/
|
||||
/node_modules/
|
||||
/dist/bundle.js
|
||||
/yarn-error.log
|
||||
/Dockerfile
|
9
back/Dockerfile
Normal file
9
back/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM thecodingmachine/nodejs:12
|
||||
|
||||
COPY --chown=docker:docker . .
|
||||
RUN yarn install
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["yarn", "run", "prod"]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue