Skip to content

Commit 0079bb9

Browse files
amish kohliamish kohli
authored andcommitted
dockerfile
1 parent 132baa8 commit 0079bb9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use the official Node.js image as a parent image
2+
FROM node:18
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json
8+
COPY package*.json ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the application code
14+
COPY . .
15+
16+
# Expose the port the app runs on
17+
EXPOSE 3000
18+
19+
# Run the application
20+
CMD ["npm", "run", "dev"]

0 commit comments

Comments
 (0)