File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ FROM python:3.13-slim
2323
2424WORKDIR /app
2525
26- RUN apt-get update && apt-get install -y --no-install-recommends sudo curl ca-certificates gosu && rm -rf /var/lib/apt/lists/* && \
26+ RUN apt-get update && apt-get install -y --no-install-recommends sudo curl ca-certificates gosu tini && rm -rf /var/lib/apt/lists/* && \
2727 groupadd -r appuser -g 1000 && \
2828 useradd -r -u 1000 -g appuser -m -s /bin/bash appuser && \
2929 echo "appuser ALL=(ALL) NOPASSWD: /usr/bin/apt-get" >> /etc/sudoers.d/appuser && \
Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ if grep -q "^local:" /app/config.yaml 2>/dev/null; then
1717 fi
1818fi
1919
20- exec gosu appuser " $@ "
20+ # Use tini as PID 1 to clean up zombie processes (e.g. docker health checks)
21+ exec tini -- gosu appuser " $@ "
You can’t perform that action at this time.
0 commit comments