Skip to content

Commit

Permalink
switch from pm2 to node
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbolikowski committed Oct 4, 2023
1 parent 20c9fe6 commit 6e06a31
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
Expand Up @@ -14,11 +14,11 @@ ENV NODE_ENV=${NODE_ENV}

WORKDIR /app

RUN yarn global add pm2
# RUN yarn global add pm2
COPY package.json ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules

EXPOSE 3333
# CMD ["node", "dist/apps/nestjs-api/main"]
CMD ["pm2", "start", "--name", "nestjs-api", "--update-env", "--max-memory-restart", "500M", "dist/apps/nestjs-api/main.js"]
CMD ["node", "dist/apps/nestjs-api/main"]
# CMD ["pm2", "start", "--name", "nestjs-api", "--update-env", "--max-memory-restart", "500M", "dist/apps/nestjs-api/main.js"]

0 comments on commit 6e06a31

Please sign in to comment.