From ce451e9a1d9657204ce30ec79e36a592d4f9817e Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 6 Jul 2021 11:18:07 +0200 Subject: [PATCH] MOBILE-3320 DX: Add docker healthcheck command --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 0895f3294..82f4e6ec9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,3 +19,4 @@ FROM nginx:alpine as serve-stage # Copy assets & config COPY --from=build-stage /app/www /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/conf.d/default.conf +HEALTHCHECK --interval=10s --timeout=4s CMD curl -f http://localhost/assets/env.json || exit 1