Add health check to control-plane Dockerfile
This commit is contained in:
parent
0cf1106b34
commit
793559a4b5
|
|
@ -2,10 +2,8 @@ FROM python:3.11-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
healthcheck:
|
||||||
curl \
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/summary')"]
|
||||||
docker.io \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN pip install --no-cache-dir pyyaml
|
RUN pip install --no-cache-dir pyyaml
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue