public static DockerHealthCheck.Builder fromCommand(List<String> command) {
    Preconditions.checkArgument(!command.isEmpty(), "command must not be empty");
    Preconditions.checkArgument(
        command.stream().allMatch(Objects::nonNull), "command must not contain null elements");
    return new Builder(ImmutableList.copyOf(command));
  }
Creates a new {@link DockerHealthCheck.Builder} with the specified command.

@param command the command
@return a new {@link DockerHealthCheck.Builder}
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java