Update Dockerfile

incluindo apt-get update --fix-missing, limpeza mais robusta e DEBIAN_FRONTEND=noninteractive para evitar prompts
This commit is contained in:
VectorAICreations 2025-05-27 12:31:04 -03:00 committed by GitHub
parent 57cc095ab0
commit bfc6e99ecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 . .