@Override
  public void execute() throws MojoExecutionException {
    try {
      LOCK.lock();
      super.execute();
    } finally {
      LOCK.unlock();
    }
  }
Set the networking mode for the RUN instructions during build
src/main/java/com/spotify/docker/BuildMojo.java