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

Na imagem python:3.10-slim, o pacote soundfile (via pysoundfile) precisa da lib libsndfile1. Então adicione isso no Dockerfile também:
14 lines
296 B
Docker
14 lines
296 B
Docker
FROM python:3.10-slim
|
|
|
|
RUN apt-get update && apt-get install -y libsndfile1 && 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"]
|