Skip to content

Commit 9b12a36

Browse files
authored
Merge pull request #169 from DefangLabs/unify-dockerfile
unified dockerfiles
2 parents e47c30c + cbfca4f commit 9b12a36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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
33

44
# Set the working directory to /app
55
WORKDIR /app
66

77
# Copy package.json and package-lock.json into the container at /app
88
COPY package*.json ./
99

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
1111
RUN npm ci
1212

1313
# Copy the current directory contents into the container at /app
@@ -17,4 +17,4 @@ COPY . .
1717
EXPOSE 3000
1818

1919
# Run the app when the container launches
20-
ENTRYPOINT [ "node", "main.js" ]
20+
ENTRYPOINT ["node", "main.js"]

0 commit comments

Comments
 (0)