Spaces:
Runtime error
Runtime error
Download Dockerfile from azaharizaman/huggingface-php: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/azaharizaman/huggingface-php/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/azaharizaman/huggingface-php/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/azaharizaman/huggingface-php/resolve/main/Dockerfile
399 Bytes
| # Base image (lightweight Python runtime) | |
| FROM python:3.10-slim | |
| # Set work directory | |
| WORKDIR /code | |
| # Copy dependency list | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all app files | |
| COPY . . | |
| # Expose default Hugging Face Space port | |
| EXPOSE 7860 | |
| # Launch FastAPI server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |