private String getDestination() {
    return Paths.get(buildDirectory, "docker").toString();
  }
Set the networking mode for the RUN instructions during build
src/main/java/com/spotify/docker/BuildMojo.java