mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00

O pydub usa o ffmpeg por trás. Como você está usando python:3.10-slim, precisa instalar ffmpeg no container.
18 lines
383 B
Docker
18 lines
383 B
Docker
FROM python:3.10-slim
|
|
|
|
# Instala libs de sistema necessárias para soundfile e pydub
|
|
RUN apt-get update && apt-get install -y \
|
|
libsndfile1 \
|
|
ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "api.src.main:app", "--host", "0.0.0.0", "--port", "8000"]
|