FROM python:3.9-slim WORKDIR /app # Install minimal dependencies RUN apt-get update && \ apt-get install -y --no-install-recommends \ git \ && rm -rf /var/lib/apt/lists/* # Create writable directories RUN mkdir -p /app/qa_model /app/cache && \ chmod -R 777 /app COPY requirements.txt . RUN pip install --upgrade pip && \ pip install --no-cache-dir -r requirements.txt COPY . . CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]