From bfc6e99ecd3550b2648a9d9e4b28254f20f93ce0 Mon Sep 17 00:00:00 2001 From: VectorAICreations <168691883+VectorAICreations@users.noreply.github.com> Date: Tue, 27 May 2025 12:31:04 -0300 Subject: [PATCH] Update Dockerfile incluindo apt-get update --fix-missing, limpeza mais robusta e DEBIAN_FRONTEND=noninteractive para evitar prompts --- Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5280420..c1515b3 100644 --- a/Dockerfile +++ b/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 . .