Spaces:
Runtime error
Runtime error
Download Dockerfile from earncoding/magic-eraser-api: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/earncoding/magic-eraser-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/earncoding/magic-eraser-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/earncoding/magic-eraser-api/resolve/main/Dockerfile
462 Bytes
| FROM python:3.9 | |
| # Step 1: HF_TOKEN ko build ke waqt accept karein | |
| ARG HF_TOKEN | |
| # Step 2: Isko environment variable banayein taake libraries isko khud istemal kar sakein | |
| ENV HUGGING_FACE_HUB_TOKEN=$HF_TOKEN | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| # Ab pip install karte waqt bhi token istemal hoga | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY ./app /app/app | |
| RUN black /app/app | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |