Skip to content

Commit

Permalink
templates: clean package manager cache
Browse files Browse the repository at this point in the history
Signed-off-by: Adphi <[email protected]>
  • Loading branch information
Adphi committed Sep 14, 2023
1 parent d54b3f9 commit 1934915
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/centos.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ RUN cd /boot && \
mv $(find . -name 'vmlinuz-*') /boot/vmlinuz && \
mv $(find . -name 'initramfs-*.img') /boot/initrd.img
{{- end }}

RUN yum clean all && \
rm -rf /var/cache/yum
3 changes: 3 additions & 0 deletions templates/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cr
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
{{- end }}

RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions templates/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cr
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
{{- end }}

RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*

0 comments on commit 1934915

Please sign in to comment.