Yuuki0125 commited on
Commit
c8d1fba
·
verified ·
1 Parent(s): 37defd1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -19
Dockerfile CHANGED
@@ -1,20 +1,21 @@
1
- FROM python:3.10.9
2
-
3
- WORKDIR /code
4
-
5
- ENV TRANSFORMERS_CACHE=/tmp/cache/huggingface
6
- ENV HF_HOME=/tmp/huggingface-cache
7
-
8
- COPY ./requirements.txt /code/requirements.txt
9
-
10
- RUN mkdir -p /tmp/cache/huggingface && chmod -R 777 /tmp/cache/huggingface
11
- RUN mkdir -p /tmp/huggingface-cache && chmod -R 777 /tmp/huggingface-cache
12
-
13
- RUN python3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gz
14
- RUN python3 -m pip install -U --no-cache-dir yt-dlp
15
- RUN apt-get update && apt-get install -y ffmpeg
16
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
-
18
- COPY . .
19
-
 
20
  CMD ["uvicorn", "API:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10.9
2
+
3
+ WORKDIR /code
4
+
5
+ ENV TRANSFORMERS_CACHE=/tmp/cache/huggingface
6
+ ENV HF_HOME=/tmp/huggingface-cache
7
+
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ RUN mkdir -p /tmp/cache/huggingface && chmod -R 777 /tmp/cache/huggingface
11
+ RUN mkdir -p /tmp/huggingface-cache && chmod -R 777 /tmp/huggingface-cache
12
+
13
+ RUN python3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gz
14
+ RUN python3 -m pip install -U --no-cache-dir yt-dlp
15
+ RUN python3 -U git+https://github.com/bluet/proxybroker2.git
16
+ RUN apt-get update && apt-get install -y ffmpeg
17
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
18
+
19
+ COPY . .
20
+
21
  CMD ["uvicorn", "API:app", "--host", "0.0.0.0", "--port", "7860"]