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
|
||||
|
||||
@@ -48,3 +48,7 @@ RUN apk add --no-cache \
|
||||
{{- end }}
|
||||
grub || true
|
||||
{{- end }}
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=rootfs / /
|
||||
|
||||
Reference in New Issue
Block a user