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