Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
000KJ authored May 23, 2024
1 parent 3e38e2a commit 69fbf3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ ENV NODE_ENV=production
WORKDIR /usr/src/index
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
RUN npm install -g --force nodemon
COPY . .
EXPOSE 8080
RUN chown -R node /usr/src/index
USER node
CMD ["npm", "start"]
CMD ["npm", "start"]

0 comments on commit 69fbf3f

Please sign in to comment.