Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +13 -5
Dockerfile
CHANGED
@@ -1,18 +1,26 @@
|
|
1 |
FROM python:3.9-slim
|
2 |
|
3 |
-
# Install system
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
ffmpeg \
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
-
# Install Python packages
|
11 |
WORKDIR /app
|
12 |
COPY requirements.txt .
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
-
# Copy
|
16 |
COPY . .
|
17 |
|
|
|
|
|
|
|
|
|
18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.9-slim
|
2 |
|
3 |
+
# Install system dependencies (expanded for full multimodal support)
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
ffmpeg \
|
6 |
+
libsndfile1 \ # Required for audio processing
|
7 |
+
libsm6 \ # For image rendering
|
8 |
+
libxext6 \ # For image rendering
|
9 |
+
poppler-utils \ # For PDF processing
|
10 |
+
tesseract-ocr \ # Optional: For OCR in images
|
11 |
+
libgl1 \ # Required for OpenCV
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
+
# Install Python packages with cache optimization
|
15 |
WORKDIR /app
|
16 |
COPY requirements.txt .
|
17 |
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
|
19 |
+
# Copy application files (with .dockerignore in place)
|
20 |
COPY . .
|
21 |
|
22 |
+
# Runtime configuration
|
23 |
+
ENV PYTHONUNBUFFERED=1 \
|
24 |
+
HF_HUB_DISABLE_TELEMETRY=1
|
25 |
+
|
26 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|