From f4e6871d76275eae7170a8bb5ba6ad8604e782f7 Mon Sep 17 00:00:00 2001 From: Oskar Kapala Date: Tue, 12 May 2026 20:28:13 +0200 Subject: [PATCH] Add health check to control-plane Dockerfile fix syntax --- services/control-plane/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/control-plane/Dockerfile b/services/control-plane/Dockerfile index 4f7f1e2..b25fb49 100644 --- a/services/control-plane/Dockerfile +++ b/services/control-plane/Dockerfile @@ -2,8 +2,8 @@ FROM python:3.11-slim WORKDIR /app -healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/summary')"] +HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ + CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/summary')" RUN pip install --no-cache-dir pyyaml