Spaces:
Paused
Paused
Julian Bilcke
commited on
Commit
·
700c21a
1
Parent(s):
6321703
attempt to use the GPU.. but it will probably fail
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -5,9 +5,11 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|
| 5 |
|
| 6 |
RUN apt update
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
# Set up a new user named "user" with user ID 1000
|
| 13 |
RUN useradd -o -u 1000 user
|
|
@@ -34,4 +36,4 @@ COPY --chown=user . $HOME/app
|
|
| 34 |
|
| 35 |
EXPOSE 7860
|
| 36 |
|
| 37 |
-
CMD [ "npm", "run", "start" ]
|
|
|
|
| 5 |
|
| 6 |
RUN apt update
|
| 7 |
|
| 8 |
+
# For FFMPEG and gl concat
|
| 9 |
+
RUN apt --yes ffmpeg curl build-essential python3 python3-dev python python-dev libx11-dev libxext-dev libxext6 libglu1-mesa-dev xvfb libxi-dev libglew2.1 libglew-dev pkg-config
|
| 10 |
|
| 11 |
+
# For Puppeteer
|
| 12 |
+
RUN apt --yes install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0
|
| 13 |
|
| 14 |
# Set up a new user named "user" with user ID 1000
|
| 15 |
RUN useradd -o -u 1000 user
|
|
|
|
| 36 |
|
| 37 |
EXPOSE 7860
|
| 38 |
|
| 39 |
+
CMD [ "xvfb-run", "-s", "-ac -screen 0 1920x1080x24", "npm", "run", "start" ]
|