title: How to create muttilayer image using maven jib plugin
body: <p>I want to build an image of one of my microservice using maven jib plugin and as I know docker image can be created in multilayer architecture. I was doing this in Dockerfile manually.
  But not sure how this can be achieved with maven jib plugin
  Following is plugin with configuration that I am using to build image.</p>
  <p>Please guide me to create multilayer image.</p>
  <pre><code>&lt;profile&gt;
              &lt;id&gt;jib&lt;/id&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;com.google.cloud.tools&lt;/groupId&gt;
                          &lt;artifactId&gt;jib-maven-plugin&lt;/artifactId&gt;
                          &lt;version&gt;1.0.0&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;from&gt;
                                  &lt;image&gt;gcr.io/test/java:11&lt;/image&gt;
                              &lt;/from&gt;
                              &lt;to&gt;
                                  &lt;image&gt;aa/${project.artifactId}&lt;/image&gt;
                                  &lt;tags&gt;
                                      &lt;tag&gt;latest&lt;/tag&gt;
                                      &lt;!--suppress MavenModelInspection --&gt;
                                      &lt;tag&gt;Test&lt;/tag&gt;
                                  &lt;/tags&gt;
                              &lt;/to&gt;
                              &lt;container&gt;
                                  &lt;ports&gt;
                                      &lt;port&gt;7575&lt;/port&gt;
                                      &lt;port&gt;9000&lt;/port&gt;
                                      &lt;port&gt;9001&lt;/port&gt;
                                      &lt;port&gt;9002&lt;/port&gt;
                                  &lt;/ports&gt;
                                  &lt;jvmFlags&gt;
                                      &lt;jvmFlag&gt;-Duser.timezone=GMT&lt;/jvmFlag&gt;
                                      &lt;jvmFlag&gt;-Dfile.encoding=utf-8&lt;/jvmFlag&gt;
                                      &lt;jvmFlag&gt;-XX:MaxRAMFraction=2&lt;/jvmFlag&gt;
                                      &lt;jvmFlag&gt;-XX:+UseG1GC&lt;/jvmFlag&gt;
                                      &lt;jvmFlag&gt;-XX:+UseStringDeduplication&lt;/jvmFlag&gt;
                                  &lt;/jvmFlags&gt;
                                  &lt;volumes&gt;
                                      &lt;volume&gt;/tmp&lt;/volume&gt;
                                  &lt;/volumes&gt;
                              &lt;/container&gt;
                          &lt;/configuration&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;phase&gt;package&lt;/phase&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;dockerBuild&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
  </code></pre>