Download Dockerfile from yanp/example: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/yanp/example/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/yanp/example/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/yanp/example/resolve/main/Dockerfile
562 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE="1" \ | |
| PYTHONUNBUFFERED="1" | |
| # hadolint ignore=DL3013 | |
| RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel | |
| WORKDIR /app/ | |
| COPY requirements.cpu.txt ./ | |
| RUN python3 -m pip install --no-cache-dir -r ./requirements.cpu.txt | |
| COPY requirements.torch.cpu.txt ./ | |
| RUN python3 -m pip install --no-cache-dir -r ./requirements.torch.cpu.txt | |
| COPY app ./app | |
| COPY models ./models | |
| COPY main.py ./ | |
| EXPOSE 8000 | |
| ENTRYPOINT ["python3", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |