Spaces:
Running
Running
FROM python:3.9-slim | |
# Install system dependencies (expanded for full multimodal support) | |
RUN apt-get update && apt-get install -y \ | |
ffmpeg \ | |
libsndfile1 \ # Required for audio processing | |
libsm6 \ # For image rendering | |
libxext6 \ # For image rendering | |
poppler-utils \ # For PDF processing | |
tesseract-ocr \ # Optional: For OCR in images | |
libgl1 \ # Required for OpenCV | |
&& rm -rf /var/lib/apt/lists/* | |
# Install Python packages with cache optimization | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy application files (with .dockerignore in place) | |
COPY . . | |
# Runtime configuration | |
ENV PYTHONUNBUFFERED=1 \ | |
HF_HUB_DISABLE_TELEMETRY=1 | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |