learningview / Dockerfile
ArrowDust's picture
LearnView Pro: Clean Production Build
79d89b0
Raw History Blame Contribute Delete
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", "*"]