Spaces:
Sleeping
Sleeping
Download Dockerfile from raddiv/background-removal-api: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/spaces/raddiv/background-removal-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/raddiv/background-removal-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/raddiv/background-removal-api/resolve/main/Dockerfile
242 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y curl && \ | |
| pip install rembg onnxruntime fastapi uvicorn python-multipart pillow | |
| WORKDIR /app | |
| COPY app.py . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |