Download Dockerfile from Propvia/Testing: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/Propvia/Testing/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Propvia/Testing/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Propvia/Testing/resolve/main/Dockerfile
322 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV HF_HOME=/tmp | |
| WORKDIR /code | |
| COPY requirements_hf.txt . | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements_hf.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "info"] |