Skip to content

Commit

Permalink
more docker improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDF committed Apr 8, 2020
1 parent 542ac69 commit aced631
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM node:lts

WORKDIR /app
USER node


COPY ./package.json .
COPY ./yarn.lock .
RUN yarn
COPY . .
RUN yarn build

RUN chown -R node:node /app
USER node

EXPOSE 3000
CMD yarn start

0 comments on commit aced631

Please sign in to comment.