File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- # Use an official Node runtime based on Alpine as a parent image
2
- FROM node:20-alpine
1
+ # Use the slim version of Node.js on Debian Bookworm as the base image
2
+ FROM node:20-bookworm-slim
3
3
4
4
# Set the working directory to /app
5
5
WORKDIR /app
6
6
7
7
# Copy package.json and package-lock.json into the container at /app
8
8
COPY package*.json ./
9
9
10
- # Install any needed packages specified in package.json
10
+ # Install any needed packages specified in package.json using npm ci for a clean install
11
11
RUN npm ci
12
12
13
13
# Copy the current directory contents into the container at /app
@@ -17,4 +17,4 @@ COPY . .
17
17
EXPOSE 3000
18
18
19
19
# Run the app when the container launches
20
- ENTRYPOINT [ "node" , "main.js" ]
20
+ ENTRYPOINT ["node" , "main.js" ]
You can’t perform that action at this time.
0 commit comments