Skip to content

Commit a617eef

Browse files
author
TKS
committed
created Dockerfile
1 parent 68af30b commit a617eef

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 the base image
2+
FROM node:14
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 ci
12+
13+
# Copy the rest of the application code to the working directory
14+
COPY . .
15+
16+
# Expose the port the app will run on
17+
EXPOSE 3001
18+
19+
# Start the application
20+
CMD ["npm", "run", "dev"]

0 commit comments

Comments
 (0)