Skip to content

Commit

Permalink
Do not remove cache dir
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Morales <[email protected]>
  • Loading branch information
mauromorales committed Sep 26, 2023
1 parent d6d6836 commit cc7a2bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ base-image:
# luet cleanup
RUN luet cleanup
RUN rm -rf /var/luet
RUN rm -rf /var/cache

SAVE IMAGE $_CIMG
SAVE ARTIFACT IMAGE AS LOCAL build/IMAGE
Expand Down
3 changes: 1 addition & 2 deletions images/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,4 @@ RUN systemctl enable ssh
# Fixup sudo perms
RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

# Clear cache
RUN rm -rf /var/cache/* && journalctl --vacuum-size=1K && rm /etc/machine-id && rm /var/lib/dbus/machine-id && rm /etc/hostname
RUN journalctl --vacuum-size=1K && rm /etc/machine-id && rm /var/lib/dbus/machine-id && rm /etc/hostname

0 comments on commit cc7a2bc

Please sign in to comment.