We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85add5c + 54d66bf commit ea671d3Copy full SHA for ea671d3
backend/Dockerfile
@@ -1,5 +1,5 @@
1
-# Use the official Node.js image
2
-FROM node:20-alpine
+# Use the slim version of Node.js v20 on Debian Bookworm as the base image
+FROM node:20-bookworm-slim
3
4
# Create and change to the app directory
5
WORKDIR /app
@@ -15,3 +15,6 @@ COPY . .
15
16
# Expose the port the app runs on
17
EXPOSE 3000
18
+
19
+# Define the command to run your application
20
+CMD ["npm", "start"]
0 commit comments