fix: add wget to Dockerfile.api and Dockerfile.web for Swarm healthcheck

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.
This commit is contained in:
CM Consultor
2026-08-09 04:12:24 +00:00
parent c711d99fbc
commit bb03663921
2 changed files with 9 additions and 2 deletions

View File

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