Skip to content

Commit

Permalink
Merge pull request #60 from ublue-os/rm-tmp
Browse files Browse the repository at this point in the history
chore(wolfi): Clean out /tmp, reduce image size
  • Loading branch information
castrojo authored Feb 11, 2024
2 parents 64b933e + 3739748 commit 7f24280
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions toolboxes/wolfi-toolbox/Containerfile.wolfi
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ RUN if [[ "${IMAGE_NAME}" =~ "dx" ]]; then \
(cd wolfictl && make wolfictl install) && \
# yam
git clone https://github.com/chainguard-dev/yam.git && \
cd yam && \
go build -v -o "/usr/bin/yam" . \
(cd yam && go build -v -o "/usr/bin/yam") && \
cd / && \
rm -rf /tmp/* \
; fi

# Get Distrobox-host-exec and host-spawn
Expand Down Expand Up @@ -73,4 +74,5 @@ RUN [ -e /sbin/su-exec ] && \
chmod u+s /sbin/su-exec && \
[ ! -e /usr/bin/sudo ] && \
printf "%s\n%s" '#!/bin/sh' '/sbin/su-exec root "$@"' > /usr/bin/sudo && \
chmod +x /usr/bin/sudo
chmod +x /usr/bin/sudo && \
rm -rf /tmp/*

0 comments on commit 7f24280

Please sign in to comment.