Shrink image by merging game fetch/extract into one layer
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
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# TODO
|
||||
|
||||
- Reduce image size of `jayfield/dosbox-novnc` (currently ~2.3GB).
|
||||
- ~~Reduce image size of `jayfield/dosbox-novnc` (currently ~2.3GB).~~ Done: 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.
|
||||
|
||||
Reference in New Issue
Block a user