Skip to content

Commit

Permalink
Merge pull request #449 from Cryptonomic/anonymoussprocket-patch-5
Browse files Browse the repository at this point in the history
Updated docker file
  • Loading branch information
anonymoussprocket authored Jun 25, 2020
2 parents b2daf82 + 738b20a commit 6c73681
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ ENV NODE_ENV=production
USER node
RUN mkdir -p /home/node/app
WORKDIR /home/node/app
COPY --chown=node:node . /home/node/app
COPY --chown=node:node package* /home/node/app/
RUN npm ci
RUN npm cache clean --force
COPY --chown=node:node . /home/node/app

RUN npm run build

FROM nginx:stable
EXPOSE 80
COPY default.conf /etc/nginx/conf.d
COPY --from=build /home/node/app/build /usr/share/nginx/html
COPY --from=build /home/node/app/build /usr/share/nginx/html/
RUN chmod -R ugo+r /usr/share/nginx/html/*
RUN chmod ugo+rx /usr/share/nginx/html/locales /usr/share/nginx/html/locales/en /usr/share/nginx/html/locales/fr /usr/share/nginx/html/locales/ru /usr/share/nginx/html/locales/zh

0 comments on commit 6c73681

Please sign in to comment.