We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261ff0e commit 589b0aaCopy full SHA for 589b0aa
tools/chatbot/Dockerfile
@@ -35,5 +35,12 @@ COPY --from=builder --chown=1000:1000 /app/.venv /app/.venv
35
# Copy application code
36
COPY chatbot.py chatbot.py
37
38
+# Explicit non-root user (already set by base image)
39
+USER 1000
40
+
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
45
# Run the application
46
CMD ["python", "chatbot.py"]
0 commit comments