Spaces:
Sleeping
Sleeping
File size: 522 Bytes
408b7e6 79d89b0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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", "*"] |