From bb0366392134f9ba6c10f07135a17dbe027a7daf Mon Sep 17 00:00:00 2001 From: CM Consultor Date: Sun, 9 Aug 2026 04:12:24 +0000 Subject: [PATCH] fix: add wget to Dockerfile.api and Dockerfile.web for Swarm healthcheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit O docker-compose.yaml de produção usa wget no healthcheck (CMD-SHELL), mas python:3.12-slim não inclui wget por padrão. --- Dockerfile.api | 6 ++++-- Dockerfile.web | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile.api b/Dockerfile.api index 6565867..be7585e 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -8,8 +8,10 @@ ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 -# Pillow wheel manylinux já inclui libjpeg, zlib, etc. -# Nenhuma dep de sistema necessária. +# wget para healthcheck do Swarm (CMD-SHELL no docker-compose.yaml de produção) +RUN apt-get update && apt-get install -y --no-install-recommends \ + wget \ + && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt diff --git a/Dockerfile.web b/Dockerfile.web index 7be4853..aa6327e 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -8,6 +8,11 @@ ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 +# wget para healthcheck do Swarm (CMD-SHELL no docker-compose.yaml de produção) +RUN apt-get update && apt-get install -y --no-install-recommends \ + wget \ + && rm -rf /var/lib/apt/lists/* + COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt