Skip to content

Commit

Permalink
chore: Update Dockerfile to use Node.js 20.15.0-alpine and install pm…
Browse files Browse the repository at this point in the history
…2 globally
  • Loading branch information
ewilan-riviere committed Jul 4, 2024
1 parent cd3fa59 commit 5e2481b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16.0-alpine
FROM node:20.15.0-alpine

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
Expand All @@ -7,6 +7,7 @@ RUN apk update && apk upgrade
RUN apk add git

COPY . /usr/src/app/
RUN npm install pm2 -g
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm build
Expand All @@ -15,4 +16,4 @@ ENV HOST=0.0.0.0

EXPOSE 3000

CMD [ "pnpm", "start" ]
CMD ["pm2-runtime", "start", "./dist/node.js"]

0 comments on commit 5e2481b

Please sign in to comment.