Spaces:
Sleeping
Sleeping
Download backend/Dockerfile from solvorlabs/docforge-api: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/solvorlabs/docforge-api/resolve/main/backend/Dockerfile
- Command line
-
hf download hf://spaces/solvorlabs/docforge-api/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/solvorlabs/docforge-api/resolve/main/backend/Dockerfile
474 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install system dependencies for Playwright | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| gnupg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Playwright browser binaries | |
| RUN playwright install chromium --with-deps | |
| COPY . . | |
| ENV DEV_MODE=false | |
| ENV PORT=8000 | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"] |