somAI-media / Dockerfile
arshenoy's picture
Update Dockerfile
14c3647 verified
raw
history blame contribute delete
522 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies including FFmpeg for Audio
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
libopenblas-dev \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
# Install Python packages
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose port 7860 for Hugging Face Spaces
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]