code: public File createDockerBuildArchive(ImageConfiguration imageConfig, MojoParameters params, ArchiverCustomizer customizer)
              throws MojoExecutionException {
          File ret = createArchive(imageConfig.getName(), imageConfig.getBuildConfiguration(), params, log, customizer);
          log.info("%s: Created docker source tar %s",imageConfig.getDescription(), ret);
          return ret;
      }
docs: Create the tar file container the source for building an image. This tar can be used directly for
  uploading to a Docker daemon for creating the image
  
  @param imageConfig the image configuration
  @param params mojo params for the project
  @param customizer final customizer to be applied to the tar before being generated
  @return file for holding the sources
  @throws MojoExecutionException if during creation of the tar an error occurs.