diff --git a/Dockerfile b/Dockerfile index 2b6fa0b3..c352ccbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,3 +3,5 @@ COPY .nginx.conf /etc/nginx/conf.d/default.conf COPY build /usr/share/nginx/html COPY create-env-config.sh /docker-entrypoint.d/ + +HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD curl -f http://localhost || exit 1 diff --git a/Dockerfile-twostage b/Dockerfile-twostage index b3c9dd36..1b3dcab7 100644 --- a/Dockerfile-twostage +++ b/Dockerfile-twostage @@ -14,3 +14,5 @@ FROM nginx:stable-alpine COPY .nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /src/build /usr/share/nginx/html COPY --from=build /src/create-env-config.sh /docker-entrypoint.d/ + +HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD curl -f http://localhost || exit 1