Skip to content

Commit ea671d3

Browse files
authored
Merge pull request #169 from DefangLabs/unify-dockerfile
unified dockerfiles
2 parents 85add5c + 54d66bf commit ea671d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

backend/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use the official Node.js image
2-
FROM node:20-alpine
1+
# Use the slim version of Node.js v20 on Debian Bookworm as the base image
2+
FROM node:20-bookworm-slim
33

44
# Create and change to the app directory
55
WORKDIR /app
@@ -15,3 +15,6 @@ COPY . .
1515

1616
# Expose the port the app runs on
1717
EXPOSE 3000
18+
19+
# Define the command to run your application
20+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)