mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
Update Dockerfile
incluindo apt-get update --fix-missing, limpeza mais robusta e DEBIAN_FRONTEND=noninteractive para evitar prompts
This commit is contained in:
parent
57cc095ab0
commit
bfc6e99ecd
1 changed files with 10 additions and 5 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,7 +1,11 @@
|
|||
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 \
|
||||
# Evita prompts de timezone e configura instalação silenciosa
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Instala dependências do sistema para scipy, soundfile, pydub, av, etc.
|
||||
RUN apt-get update --fix-missing && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
ffmpeg \
|
||||
libavdevice-dev \
|
||||
|
@ -13,14 +17,15 @@ RUN apt-get update && apt-get install -y \
|
|||
libavresample-dev \
|
||||
libsndfile1 \
|
||||
git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ca-certificates \
|
||||
&& apt-get clean && \
|
||||
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 && \
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
|
Loading…
Add table
Reference in a new issue