From 0418fba2d1af887c603d966378358372955099fc Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 16 Apr 2023 17:27:50 +0200 Subject: [PATCH] Add healthcheck --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index c4295f0..b78ff42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,6 @@ ENV CPU_CORES 1 ENV DISK_SIZE 16G ENV RAM_SIZE 512M +HEALTHCHECK --interval=30s --timeout=5s CMD curl -f http://127.0.0.1:5000/ || exit 1 + ENTRYPOINT ["/run/run.sh"]