Skip to content

Commit cadfd1f

Browse files
added containerization for deployment
1 parent cdf1875 commit cadfd1f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env
2+
src/*.json

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Use the official Node.js image as the base image
2+
FROM node:23.7.0
3+
4+
WORKDIR /app
5+
6+
COPY package.json package.json
7+
COPY package-lock.json package-lock.json
8+
9+
RUN npm install
10+
11+
COPY . .
12+
13+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)