fix: deploy crash from MutableHeaders.pop + missing wget

Two issues blocked the security-fix deploy:

1. Starlette's MutableHeaders has no .pop() — del-via-membership is the
   correct mapping op. The previous code crashed every request with
   AttributeError, taking the container's healthcheck down with it.

2. Coolify's in-container healthcheck falls back to wget which wasn't
   installed in our slim base. Add wget alongside curl.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-25 18:22:36 +00:00
parent 0340a670ed
commit 901e9c75b0
3 changed files with 64 additions and 44 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ ENV PYTHONUNBUFFERED=1 \
WORKDIR /app
# gcc — for any pure-Python wheels without prebuilt slim wheels.
# curl — Coolify runs its healthcheck via curl inside the container.
# curl + wget — Coolify falls back to wget for its in-container healthcheck.
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc curl \
&& apt-get install -y --no-install-recommends gcc curl wget \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps from pyproject.