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

          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.

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

              Created:
              Updated: