imperialwool commited on
Commit
4e93474
1 Parent(s): a56bcec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  FROM python:3.11.1-bullseye
2
 
 
 
3
  COPY . /app
4
 
5
  RUN chmod -R 777 /app
@@ -14,4 +16,8 @@ RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel
14
 
15
  RUN python3 -m pip install --force-reinstall --no-cache-dir https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
16
 
 
 
 
 
17
  CMD ["python", "app.py"]
 
1
  FROM python:3.11.1-bullseye
2
 
3
+ USER root
4
+
5
  COPY . /app
6
 
7
  RUN chmod -R 777 /app
 
16
 
17
  RUN python3 -m pip install --force-reinstall --no-cache-dir https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
18
 
19
+ RUN mkdir -p /.cache/huggingface/hub
20
+ RUN chown -R root:root /.cache/huggingface/hub
21
+ RUN chmod -R 777 /.cache/huggingface/hub
22
+
23
  CMD ["python", "app.py"]