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.
1 parent 6ddb6b8 commit d0c9c05Copy full SHA for d0c9c05
dockerfile
@@ -0,0 +1,21 @@
1
+# Use an official Node.js base image
2
+FROM node:14
3
+
4
+# Set the working directory to /app
5
+WORKDIR /app
6
7
+# Copy the application code into the container
8
+COPY . /app
9
10
+# Install dependencies
11
+RUN npm install
12
13
+# Expose port 3000
14
+EXPOSE 3000
15
16
+# Use a non-root user to run the application
17
+USER node
18
19
+# Command to start the application
20
+CMD ["npm", "start"]
21
0 commit comments