Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
cd54a16
1
Parent(s):
d94e568
fix
Browse files- Dockerfile +1 -4
- package-lock.json +0 -0
- package.json +1 -0
Dockerfile
CHANGED
@@ -45,9 +45,6 @@ COPY --chown=user .env /app
|
|
45 |
|
46 |
RUN ffmpeg -version
|
47 |
|
48 |
-
# To manage the Node process
|
49 |
-
RUN npm install pm2@latest -g
|
50 |
-
|
51 |
# Copy the current directory contents into the container at /app setting the owner to the user
|
52 |
COPY --chown=user . /app
|
53 |
|
@@ -57,4 +54,4 @@ EXPOSE 7860
|
|
57 |
|
58 |
# we can't use this (it time out)
|
59 |
# CMD [ "xvfb-run", "-s", "-ac -screen 0 1920x1080x24", "npm", "run", "start" ]
|
60 |
-
CMD [ "pm2-runtime", "ecosystem.config.js" ]
|
|
|
45 |
|
46 |
RUN ffmpeg -version
|
47 |
|
|
|
|
|
|
|
48 |
# Copy the current directory contents into the container at /app setting the owner to the user
|
49 |
COPY --chown=user . /app
|
50 |
|
|
|
54 |
|
55 |
# we can't use this (it time out)
|
56 |
# CMD [ "xvfb-run", "-s", "-ac -screen 0 1920x1080x24", "npm", "run", "start" ]
|
57 |
+
CMD [ "node_modules/pm2/bin/pm2-runtime", "ecosystem.config.js" ]
|
package-lock.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
package.json
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
"dotenv": "^16.3.1",
|
20 |
"express": "^4.18.2",
|
21 |
"fluent-ffmpeg": "^2.1.2",
|
|
|
22 |
"puppeteer": "^22.7.1",
|
23 |
"query-string": "^9.0.0",
|
24 |
"sharp": "^0.33.3",
|
|
|
19 |
"dotenv": "^16.3.1",
|
20 |
"express": "^4.18.2",
|
21 |
"fluent-ffmpeg": "^2.1.2",
|
22 |
+
"pm2": "^5.3.1",
|
23 |
"puppeteer": "^22.7.1",
|
24 |
"query-string": "^9.0.0",
|
25 |
"sharp": "^0.33.3",
|