Spaces:
Sleeping
Sleeping
Download Dockerfile from Mohamed478/smart-reader-backend: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/Mohamed478/smart-reader-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Mohamed478/smart-reader-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Mohamed478/smart-reader-backend/resolve/main/Dockerfile
504 Bytes
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install uv | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
| # Copy requirements first to leverage Docker cache | |
| COPY requirements.txt . | |
| # Install dependencies using uv | |
| RUN uv pip install --system --no-cache -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose port 7860 for HuggingFace Spaces | |
| EXPOSE 7860 | |
| # Run Uvicorn on 0.0.0.0:7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |