mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
tools: Fix mkimage-squashfs
Us a scratch image as the base instead of the alpine base image. Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
fe569b627a
commit
a9552aee2d
@ -1,12 +1,15 @@
|
||||
FROM linuxkit/alpine:daed76b8f1d28cdeeee215a95b9671c682a405dc
|
||||
|
||||
RUN \
|
||||
apk update && apk upgrade && \
|
||||
apk add --no-cache \
|
||||
FROM linuxkit/alpine:daed76b8f1d28cdeeee215a95b9671c682a405dc AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
busybox \
|
||||
libarchive-tools \
|
||||
squashfs-tools \
|
||||
&& true
|
||||
RUN mv /out/etc/apk/repositories.upstream /out/etc/apk/repositories
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /
|
||||
COPY --from=mirror /out/ /
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT [ "/make-squashfs" ]
|
||||
|
Loading…
Reference in New Issue
Block a user