mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 01:17:19 +00:00
Us a scratch image as the base instead of the alpine base image. Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
16 lines
418 B
Docker
16 lines
418 B
Docker
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" ]
|