parle-s2s-light / Dockerfile
marcosremar2's picture
Upload Dockerfile with huggingface_hub
1ec7997 verified
raw
history blame contribute delete
475 Bytes
FROM python:3.10-slim
WORKDIR /app
# System deps
RUN apt-get update -qq && apt-get install -y -qq ffmpeg libsndfile1 sox git && rm -rf /var/lib/apt/lists/*
# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Download models at build time (cached in image)
COPY download_models.py .
RUN python3 download_models.py
# App
COPY app.py .
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]