Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
FROM node:18-slim
|
2 |
|
|
|
|
|
|
|
|
|
3 |
# Switch to the node user
|
4 |
USER node
|
5 |
|
@@ -30,4 +34,5 @@ RUN --mount=type=secret,id=SERVICE_ACC_JSON,mode=0444,required=true \
|
|
30 |
|
31 |
|
32 |
# Command to run the Node.js server
|
33 |
-
CMD ["
|
|
|
|
1 |
FROM node:18-slim
|
2 |
|
3 |
+
RUN npm install -g pm2
|
4 |
+
RUN pm2 link 9c0sc3fe48gh1nh vx21fna6h9etq2r
|
5 |
+
RUN npm install forever -g
|
6 |
+
|
7 |
# Switch to the node user
|
8 |
USER node
|
9 |
|
|
|
34 |
|
35 |
|
36 |
# Command to run the Node.js server
|
37 |
+
CMD [ "pm2-runtime", "start", "index.js", "--name", "uptime-wa"]
|
38 |
+
# CMD ["node", "index.js"]
|