Spaces:
Sleeping
Sleeping
Download Dockerfile from clabs/learningview: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/spaces/clabs/learningview/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/clabs/learningview/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/clabs/learningview/resolve/main/Dockerfile
522 Bytes
| FROM python:3.11-slim | |
| # Required for OpenCV and PDF rendering on ARM architecture | |
| RUN apt-get update && apt-get install -y \ | |
| libglx-mesa0 \ | |
| libglib2.0-0 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| ENV PYTHONPATH=/app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Ensure report directory exists [cite: 31, 59] | |
| RUN mkdir -p temp_reports | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"] |