The downloaded zips and their extracted contents lived in separate RUN layers, so the zips never actually left the image despite a later rm -rf /tmp/apps layer. unzip/smbclient were also left installed after only being needed at build time. Merging fetch, extract, cleanup, and package purge into a single RUN drops the image from 2.31GB to 1.6GB. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NiNnj78HGx1KWyCCo39HSz
307 B
307 B
TODO
- ~
Reduce image size ofDone: merged the game download/extract steps and the unzip/smbclient install into a single layer (so the downloaded zips and the packages only needed to extract them no longer persist in the final image). 2.31GB -> 1.6GB.jayfield/dosbox-novnc(currently2.3GB).