From 7552b63c233a7db34cb9676836c75839ed9caf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20G=C3=B6bel?= <dgoebel@techfak.uni-bielefeld.de> Date: Thu, 14 Sep 2023 11:39:42 +0200 Subject: [PATCH] Fix typo in healthcheck in dockerfile #62 --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 831ee92..8c7bfad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ # build stage FROM node:18 as build-stage WORKDIR /app -HEALTHCHECK --interval=35s --timeout=4s CMD curl -f http://localhost || exit 1 # RUN apk add yarn COPY package.json ./ COPY package-lock.json ./ @@ -11,7 +10,7 @@ RUN npm run build-only # production stage FROM nginx:stable-alpine as production-stage -HEALTHCHECK --interval=305s --timeout=4s CMD curl --head -f http://localhost || exit 1 +HEALTHCHECK --interval=30s --timeout=4s CMD curl --head -f http://localhost || exit 1 COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/src/assets/env.template.js /tmp COPY nginx.conf /etc/nginx/conf.d/default.conf -- GitLab