you can't use `RUN rm /tmp` to cleanup image from unnecessary files created by previous commands in Dockerfile. This results in complex Dockerfile or one-line RUN commands.

      using docker export | docker import you can "squash" the image layers into a single one-layer docker image, making Dockerfile simpler and preserving image size.

          [JENKINS-27608] option to squash image commits

          Nicolas De Loof created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161820 ] New: JNJira + In-Review [ 180851 ]

          Chulki Lee added a comment -

          Now docker supports multi-stage builds for smaller and simpler image.

          Chulki Lee added a comment - Now docker supports multi-stage builds for smaller and simpler image.
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]

            Unassigned Unassigned
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: