3 ms·
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 ``` T
by dayjaby 3y ago
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.