Spaces:
Sleeping
Sleeping
quanvndzai
commited on
Commit
•
b02b3d6
1
Parent(s):
f29138f
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -15,8 +15,9 @@ RUN npm install
|
|
15 |
# Bundle app source
|
16 |
COPY . .
|
17 |
|
18 |
-
RUN npm install -g
|
19 |
-
|
|
|
20 |
|
21 |
EXPOSE 3000
|
22 |
-
CMD ["
|
|
|
15 |
# Bundle app source
|
16 |
COPY . .
|
17 |
|
18 |
+
RUN npm install pm2 -g
|
19 |
+
ENV PM2_PUBLIC_KEY yrzs0totz1wqh2d
|
20 |
+
ENV PM2_SECRET_KEY uhyz7tcoimeb81b
|
21 |
|
22 |
EXPOSE 3000
|
23 |
+
CMD ["pm2-runtime", "index.js",">","/dev/null"]
|