Skip to content

Commit 10d20df

Browse files
author
Issam Kadar
committed
chore/security : remove healthcheck from chatbot Dockerfile
1 parent 589b0aa commit 10d20df

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tools/chatbot/.trivyignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ CVE-2026-0994
1212
# Status: No fix available
1313
# Justification: Exploitation nécessite contrôle des paramètres memalign (peu probable dans notre contexte)
1414
CVE-2026-0861
15+
16+
# DS026 - HEALTHCHECK instruction missing
17+
# Justification: Utilisation de Kubernetes avec livenessProbe/readinessProbe
18+
# Le HEALTHCHECK Docker est ignoré par Kubernetes
19+
DS026

tools/chatbot/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,5 @@ COPY chatbot.py chatbot.py
3838
# Explicit non-root user (already set by base image)
3939
USER 1000
4040

41-
# Healthcheck: verify Python process is running
42-
HEALTHCHECK --interval=30s --timeout=10s --start-period=180s --retries=3 \
43-
CMD pgrep -f "python chatbot.py" || exit 1
44-
4541
# Run the application
4642
CMD ["python", "chatbot.py"]

0 commit comments

Comments
 (0)