From d078d67d58f3bf91cf3d651dbcae71dd24a1be03 Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Sat, 12 Sep 2020 12:17:51 +0200 Subject: [PATCH] Add healthcheck --- frontend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index e3b4563..d7c92e0 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -15,6 +15,8 @@ RUN npm run build FROM nginx:alpine +HEALTHCHECK --interval=1m --timeout=10s CMD curl --fail http://localhost/ || exit 1 + WORKDIR /usr/share/nginx/html RUN rm -rf *