From 793559a4b541f4c3748eb85841bcb222e75308d3 Mon Sep 17 00:00:00 2001 From: Oskar Kapala Date: Tue, 12 May 2026 20:25:01 +0200 Subject: [PATCH] Add health check to control-plane Dockerfile --- services/control-plane/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/control-plane/Dockerfile b/services/control-plane/Dockerfile index a620b8e..4f7f1e2 100644 --- a/services/control-plane/Dockerfile +++ b/services/control-plane/Dockerfile @@ -2,10 +2,8 @@ FROM python:3.11-slim WORKDIR /app -RUN apt-get update && apt-get install -y \ - curl \ - docker.io \ - && rm -rf /var/lib/apt/lists/* +healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/summary')"] RUN pip install --no-cache-dir pyyaml