Skip to content

Commit 2dffab2

Browse files
authored
Create Dockerfile
1 parent 85f5d7d commit 2dffab2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)