Browse Source

Fixing Dockerfiles

pull/35/head
David Négrier 2 years ago
parent
commit
d979636a19
  1. 1
      back/.dockerignore
  2. 4
      back/Dockerfile
  3. 1
      front/.dockerignore
  4. 2
      front/Dockerfile

1
back/.dockerignore

@ -2,3 +2,4 @@
/node_modules/
/dist/bundle.js
/yarn-error.log
/Dockerfile

4
back/Dockerfile

@ -1,8 +1,8 @@
FROM thecodingmachine/nodejs:12
COPY . .
COPY --chown=docker:docker . .
RUN yarn install
ENV NODE_ENV=production
CMD ['yarn', 'run', 'prod']
CMD ["yarn", "run", "prod"]

1
front/.dockerignore

@ -1,3 +1,4 @@
/node_modules/
/dist/bundle.js
/yarn-error.log
/Dockerfile

2
front/Dockerfile

@ -1,7 +1,7 @@
# we are rebuilding on each deploy to cope with the API_URL environment URL
FROM thecodingmachine/nodejs:12-apache
COPY . .
COPY --chown=docker:docker . .
RUN yarn install
ENV NODE_ENV=production

Loading…
Cancel
Save