Spaces:
Sleeping
Sleeping
Download backend/Dockerfile from melkholy/sentiment-scope: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/melkholy/sentiment-scope/resolve/main/backend/Dockerfile
- Command line
-
hf download hf://spaces/melkholy/sentiment-scope/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/melkholy/sentiment-scope/resolve/main/backend/Dockerfile
550 Bytes
| FROM python:3.13-slim | |
| WORKDIR /app | |
| # CPU-only torch wheel: ~10x smaller than the default CUDA build, and there | |
| # is no GPU inside this container anyway. requirements-docker.txt excludes | |
| # torch so we install it once from the CPU index, then the rest normally. | |
| COPY requirements-docker.txt . | |
| RUN pip install --no-cache-dir torch==2.12.1 --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install --no-cache-dir -r requirements-docker.txt | |
| COPY app ./app | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] | |