Skip to content

Commit 6f5c3ba

Browse files
authored
Upgrade Node.js version in Dockerfile
Updated base image to node:20-alpine and added CMD instruction.
1 parent 6c8703f commit 6f5c3ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM node:lts-alpine AS build
1+
FROM node:20-alpine AS build
22
WORKDIR /app
33
COPY package.json server.js ./
44
RUN npm install && npm run build
55

6-
FROM node:lts-alpine
6+
FROM node:20-alpine
77
WORKDIR /app
88
COPY --from=build /app/dist/server.js ./
99
EXPOSE 3000
10-
CMD ["node", "server.js"]
10+
11+
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)