From 9fe6151fc46664ae1d65a5d8a46bac92e6e8c67d Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:11:15 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index df3159f..5cbed05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,5 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD [ "python", "./app.py" ] + +HEALTHCHECK CMD curl --fail http://localhost:5000/ || exit 1