Spaces:
Paused
Paused
Download Dockerfile from Yuuki0125/Another_API: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/spaces/Yuuki0125/Another_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yuuki0125/Another_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yuuki0125/Another_API/resolve/main/Dockerfile
833 Bytes
| FROM python:3.10.9 | |
| WORKDIR /code | |
| ENV TRANSFORMERS_CACHE=/tmp/cache/huggingface | |
| ENV HF_HOME=/tmp/huggingface-cache | |
| ENV XDG_CACHE_HOME=/tmp/.cache | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN mkdir -p /tmp/cache/huggingface && chmod -R 777 /tmp/cache/huggingface | |
| RUN mkdir -p /tmp/huggingface-cache && chmod -R 777 /tmp/huggingface-cache | |
| RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache | |
| RUN python3 -m pip install -U git+https://github.com/bluet/proxybroker2.git | |
| RUN python3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gz | |
| RUN python3 -m pip install -U --no-cache-dir yt-dlp | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| CMD ["uvicorn", "API:app", "--host", "0.0.0.0", "--port", "7860"] |