News for hackers. Stuff that matters.
Re:Dive: A tool for exploring a Docker image, layer contents... by dayjaby on Wednesday January 10, 2024 @02:55AM (#38937468)
One simple case where the resulting image is bigger than necessary:

``` COPY ./package.deb /tmp/package.deb

RUN dpkg -i /tmp/*.deb && rm -rf /tmp/*.deb ```

This results in two layers, with one layer containing a huge file, thus being part of the final image if you don't do multi-stage builds.

There are no comments on this comment yet.