mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
30 lines
689 B
Docker
30 lines
689 B
Docker
FROM python:3.10-slim
|
|
|
|
# Instala dependências de sistema necessárias para scipy, soundfile, pydub, av, etc.
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
ffmpeg \
|
|
libavdevice-dev \
|
|
libavfilter-dev \
|
|
libavformat-dev \
|
|
libavcodec-dev \
|
|
libavutil-dev \
|
|
libswscale-dev \
|
|
libavresample-dev \
|
|
libsndfile1 \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
|
|
# Instala as libs Python com cache desativado
|
|
RUN pip install --no-cache-dir --upgrade pip && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "api.src.main:app", "--host", "0.0.0.0", "--port", "8000"]
|