Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
@@ -32,10 +32,18 @@ RUN chown -R 1000:0 .
|
|
32 |
RUN chmod 777 .
|
33 |
RUN chown -R 1000:0 /app
|
34 |
RUN chmod 777 /app
|
|
|
|
|
35 |
|
36 |
RUN mkdir -p uploads && chmod 777 uploads
|
37 |
|
38 |
RUN pip3 install --upgrade pip setuptools==59.6.0
|
39 |
RUN pip3 install -r requirements.txt
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
32 |
RUN chmod 777 .
|
33 |
RUN chown -R 1000:0 /app
|
34 |
RUN chmod 777 /app
|
35 |
+
RUN chown -R 1000:0 /.cache
|
36 |
+
RUN chmod 777 /.cache
|
37 |
|
38 |
RUN mkdir -p uploads && chmod 777 uploads
|
39 |
|
40 |
RUN pip3 install --upgrade pip setuptools==59.6.0
|
41 |
RUN pip3 install -r requirements.txt
|
42 |
|
43 |
+
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
|
44 |
+
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5
|
45 |
+
RUN md5sum -c ffmpeg-git-amd64-static.tar.xz.md5
|
46 |
+
RUN tar xvf ffmpeg-git-amd64-static.tar.xz
|
47 |
+
RUN mv ffmpeg-git*/ffmpeg ffmpeg-git*/ffprobe /usr/local/bin/
|
48 |
+
|
49 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|