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
|
FROM python:3.10-slim
|
||||||
|
|
||||||
# Instala dependências de sistema necessárias para scipy, soundfile, pydub, av, etc.
|
# Evita prompts de timezone e configura instalação silenciosa
|
||||||
RUN apt-get update && apt-get install -y \
|
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 \
|
build-essential \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
libavdevice-dev \
|
libavdevice-dev \
|
||||||
|
@ -13,14 +17,15 @@ RUN apt-get update && apt-get install -y \
|
||||||
libavresample-dev \
|
libavresample-dev \
|
||||||
libsndfile1 \
|
libsndfile1 \
|
||||||
git \
|
git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
ca-certificates \
|
||||||
|
&& apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Instala as libs Python com cache desativado
|
RUN pip install --upgrade pip && \
|
||||||
RUN pip install --no-cache-dir --upgrade pip && \
|
|
||||||
pip install --no-cache-dir -r requirements.txt
|
pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
Loading…
Add table
Reference in a new issue