Skip to content

Commit

Permalink
setup server for production use and change it on package.json, set --…
Browse files Browse the repository at this point in the history
…production variable on the dockerfile
  • Loading branch information
mantesso committed Jun 15, 2024
1 parent 5361cb5 commit c545539
Show file tree
Hide file tree
Showing 3 changed files with 590 additions and 122 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:22-alpine
EXPOSE 3000
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
RUN npm install --production
COPY . .
RUN npm run build
RUN adduser -D appuser
USER appuser
EXPOSE 3000
CMD npm run start
Loading

0 comments on commit c545539

Please sign in to comment.