Spaces:
Configuration error
Configuration error
Download Dockerfile from Rudra3779/grably-api: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/Rudra3779/grably-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rudra3779/grably-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rudra3779/grably-api/resolve/main/Dockerfile
453 Bytes
| FROM python:3.12-slim | |
| WORKDIR /code | |
| # Install system dependencies | |
| COPY packages.txt . | |
| RUN apt-get update && \ | |
| apt-get install -y $(cat packages.txt) && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Run the FastAPI application using uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |