Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
16 |
-
RUN
|
17 |
-
|
18 |
-
|
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"]
|