Skip to content

Commit

Permalink
add expose and remove pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
RbAvci committed Jul 2, 2024
1 parent 5cb140e commit a4bc262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:20.14.0-alpine3.20

RUN npm install pm2 -g

WORKDIR /usr/local/watch-next
COPY . /usr/local/watch-next
RUN npm install
RUN npm run build

CMD "pm2-runtime" "server/app.js"
EXPOSE 3000:3000

CMD "npm" "start"

0 comments on commit a4bc262

Please sign in to comment.