Skip to content

Commit b891909

Browse files
committed
feat: added dockerfile
1 parent f377c3d commit b891909

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:17
2+
3+
WORKDIR /app
4+
# Install app dependencies
5+
# A wildcard is used to ensure both package.json AND package-lock.json are copied
6+
# where available (npm@5+)
7+
COPY package*.json ./
8+
RUN npm install
9+
#Bundle app source
10+
COPY . .
11+
12+
EXPOSE 3000
13+
CMD [ "node", "app.js", "--production"]

0 commit comments

Comments
 (0)