mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-25 17:16:25 +00:00
templates: clean package manager cache
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
d54b3f9a2c
commit
1934915ae8
@ -39,3 +39,6 @@ RUN cd /boot && \
|
|||||||
mv $(find . -name 'vmlinuz-*') /boot/vmlinuz && \
|
mv $(find . -name 'vmlinuz-*') /boot/vmlinuz && \
|
||||||
mv $(find . -name 'initramfs-*.img') /boot/initrd.img
|
mv $(find . -name 'initramfs-*.img') /boot/initrd.img
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
RUN yum clean all && \
|
||||||
|
rm -rf /var/cache/yum
|
||||||
|
@ -74,3 +74,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cr
|
|||||||
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
|
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
|
||||||
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
|
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
RUN apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -63,3 +63,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cr
|
|||||||
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
|
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
|
||||||
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
|
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
RUN apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user