public DockerHealthCheck build() {
      return new DockerHealthCheck(command, interval, timeout, startPeriod, retries);
    }
Sets the number of times to retry the healthcheck before the container is considered to be
unhealthy.

@param retries the number of retries before the container is considered to be unhealthy
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java