public JibContainerBuilder setExposedPorts(Port... ports) {
    return setExposedPorts(new HashSet<>(Arrays.asList(ports)));
  }
Sets the ports to expose from the container. This replaces any previously-set exposed ports.

@param ports the ports to expose
@return this
@see #setExposedPorts(Set)
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java