Skip to content

Commit 8dad578

Browse files
Updated the dockerfile
1 parent ea76418 commit 8dad578

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:16.18-alpine3.15
2+
3+
RUN mkdir -p /usr/src/app
4+
WORKDIR /usr/src/app
5+
6+
COPY package*.json ./
7+
RUN npm install
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
RUN npm i -g pm2
14+
EXPOSE 5001
15+
EXPOSE 5002
16+
EXPOSE 6001
17+
EXPOSE 6002
18+
CMD [ "pm2-runtime", "ecosystem.config.js" ]

0 commit comments

Comments
 (0)