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:
Rolf Neugebauer 2018-07-24 21:48:40 +01:00
parent fe569b627a
commit a9552aee2d

View File

@ -1,12 +1,15 @@
FROM linuxkit/alpine:daed76b8f1d28cdeeee215a95b9671c682a405dc FROM linuxkit/alpine:daed76b8f1d28cdeeee215a95b9671c682a405dc AS mirror
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
RUN \ RUN apk add --no-cache --initdb -p /out \
apk update && apk upgrade && \ alpine-baselayout \
apk add --no-cache \ busybox \
libarchive-tools \ libarchive-tools \
squashfs-tools \ squashfs-tools \
&& true && true
RUN mv /out/etc/apk/repositories.upstream /out/etc/apk/repositories
FROM scratch
WORKDIR /
COPY --from=mirror /out/ /
COPY . . COPY . .
ENTRYPOINT [ "/make-squashfs" ] ENTRYPOINT [ "/make-squashfs" ]