mirror of
https://github.com/linka-cloud/d2vm.git
synced 2026-01-24 10:35:02 +00:00
fix: squash image layers during build
close #75 Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM {{ .Image }}
|
||||
FROM {{ .Image }} AS rootfs
|
||||
|
||||
USER root
|
||||
|
||||
@@ -68,3 +68,7 @@ RUN mv $(ls -t /boot/vmlinuz-* | head -n 1) /boot/vmlinuz && \
|
||||
|
||||
RUN apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=rootfs / /
|
||||
|
||||
Reference in New Issue
Block a user