Download Dockerfile from Fred808/CU1: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/Fred808/CU1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Fred808/CU1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Fred808/CU1/resolve/main/Dockerfile
335 Bytes
| FROM python:3.10 | |
| WORKDIR /workspace | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Make all workspace directories writeable | |
| RUN chmod -R 777 /workspace | |
| # Start FastAPI app with uvicorn (for HuggingFace Spaces) | |
| CMD ["uvicorn", "scripts.vision_api:app", "--host", "0.0.0.0", "--port", "7860"] | |