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 85f5d7d commit 2dffab2Copy full SHA for 2dffab2
Dockerfile
@@ -0,0 +1,20 @@
1
+# Use the official Node.js image as the base image
2
+FROM node:21
3
+
4
+# Set the working directory inside the container
5
+WORKDIR /app
6
7
+# Copy package.json and package-lock.json to the working directory
8
+COPY package*.json ./
9
10
+# Install the dependencies
11
+RUN npm install
12
13
+# Copy the rest of the application code to the working directory
14
+COPY . .
15
16
+# Expose the port that the app runs on
17
+EXPOSE 3000
18
19
+# Define the command to run the application
20
+CMD ["node", "index.js"]
0 commit comments