From e3d796bc8c0d9b3e012e80a663f2039afcb5c87a Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 18 Dec 2025 17:38:49 -0500 Subject: [PATCH] dockerfile healthcheck --- docs/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/Dockerfile b/docs/Dockerfile index 78267a29..9ba748e0 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -29,6 +29,10 @@ FROM nginx:alpine # Copy built static files COPY --from=builder /app/build /usr/share/nginx/html +# Healthcheck for container orchestration +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ + CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1 + # Expose port EXPOSE 80