diff --git a/Dockerfile b/Dockerfile index 0f05700fa..72d345f3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -175,6 +175,6 @@ COPY nginx/frontend.conf /etc/nginx/conf.d/default.conf EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ - CMD wget -q --spider http://127.0.0.1:8080/ || exit 1 + CMD sh -c 'exec 3<>/dev/tcp/127.0.0.1/8080 && echo -e "GET / HTTP/1.0\r\nHost: 127.0.0.1\r\n\r\n" >&3 && head -1 <&3 | grep -q "200" || exit 1' CMD ["nginx", "-g", "daemon off;"]