Skip to content

Commit 2897e5c

Browse files
Refactor Dockerfile to use updated Node version and change runtime command
1 parent 05a4bee commit 2897e5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.15.0-alpine
1+
FROM node:20.17.0-alpine
22

33
RUN mkdir -p /app
44
WORKDIR /app
@@ -7,7 +7,6 @@ RUN apk update && apk upgrade
77
RUN apk add git
88

99
COPY . /app/
10-
RUN npm install pm2 -g
1110
RUN npm install -g pnpm
1211
RUN pnpm install
1312
RUN pnpm build
@@ -16,4 +15,5 @@ ENV HOST=0.0.0.0
1615

1716
EXPOSE 3000
1817

19-
CMD ["pm2-runtime", "start", "./dist/node.js"]
18+
# CMD ["pm2-runtime", "start", "./dist/node.js"]
19+
CMD ["node", "./dist/node.js"]

0 commit comments

Comments
 (0)