mirror of
https://github.com/linka-cloud/d2vm.git
synced 2026-01-24 02:25:04 +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
|
||||
|
||||
@@ -46,3 +46,7 @@ RUN cd /boot && \
|
||||
|
||||
RUN yum clean all && \
|
||||
rm -rf /var/cache/yum
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=rootfs / /
|
||||
|
||||
Reference in New Issue
Block a user