Download Dockerfile from legibl/app: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/legibl/app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/legibl/app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/legibl/app/resolve/main/Dockerfile
457 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| COPY pyproject.toml README.md ./ | |
| COPY src ./src | |
| RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir . | |
| EXPOSE 8000 | |
| # Hosted audit always runs with SSRF protection on (no allow_private). | |
| # Honor $PORT when the platform injects one (Render/Railway/Heroku); default 8000 (Fly/local). | |
| CMD ["sh", "-c", "exec python -m uvicorn legibl.api:app --host 0.0.0.0 --port ${PORT:-8000} --log-level warning"] | |