Spaces:
Paused
Paused
Download Dockerfile from Yuuki0125/Art_Detection_API: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/Yuuki0125/Art_Detection_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yuuki0125/Art_Detection_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yuuki0125/Art_Detection_API/resolve/main/Dockerfile
385 Bytes
| FROM python:3.10.9 | |
| ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache | |
| ENV HF_HOME=/tmp/huggingface_cache | |
| WORKDIR /code | |
| RUN mkdir -p /tmp/huggingface_cache && chmod -R 777 /tmp/huggingface_cache | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |