multimodal_module / Dockerfile
Princeaka's picture
Update Dockerfile
9ac5a6c verified
raw
history blame
492 Bytes
FROM python:3.9-slim
# Install system deps
RUN apt-get update && apt-get install -y \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy only requirements first for caching
COPY requirements.txt .
# Force huggingface-hub to install first
RUN pip install --no-cache-dir huggingface-hub==0.13.4
RUN pip install --no-cache-dir -r requirements.txt
# Copy rest of the app
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]