Spaces:
Sleeping
Sleeping
rogerxavier
commited on
Commit
•
00c2318
1
Parent(s):
27b66d5
Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
FROM python:3.9
|
2 |
USER root
|
3 |
-
RUN apt update && apt install -y
|
4 |
-
|
5 |
-
#RUN dpkg -L imagemagick
|
6 |
-
#ENV FFMPEG_BINARY=/usr/share/doc/imagemagick
|
7 |
-
|
8 |
-
RUN FFMPEG_BINARY=$(dpkg -L imagemagick | grep bin) && echo $FFMPEG_BINARY
|
9 |
-
|
10 |
|
11 |
|
12 |
# RUN apt upgrade -y
|
@@ -22,7 +16,7 @@ COPY requirements.txt .
|
|
22 |
RUN pip install -r requirements.txt
|
23 |
|
24 |
COPY . .
|
25 |
-
|
26 |
|
27 |
EXPOSE 7860
|
28 |
|
|
|
1 |
FROM python:3.9
|
2 |
USER root
|
3 |
+
RUN apt update && apt install -y libgl1-mesa-glx
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
# RUN apt upgrade -y
|
|
|
16 |
RUN pip install -r requirements.txt
|
17 |
|
18 |
COPY . .
|
19 |
+
RUN FFMPEG_BINARY=/magick
|
20 |
|
21 |
EXPOSE 7860
|
22 |
|