mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
tools: Fix mkimage-raw-bios
Build the final image from scratch instead of the full alpine base image. Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
99e65ef998
commit
24d8ecc943
@ -1,14 +1,17 @@
|
|||||||
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 \
|
||||||
dosfstools \
|
dosfstools \
|
||||||
libarchive-tools \
|
libarchive-tools \
|
||||||
sfdisk \
|
sfdisk \
|
||||||
syslinux \
|
syslinux \
|
||||||
&& true
|
&& true
|
||||||
|
RUN mv /out/etc/apk/repositories.upstream /out/etc/apk/repositories
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
WORKDIR /
|
||||||
|
COPY --from=mirror /out/ /
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ENTRYPOINT [ "/make-bios" ]
|
ENTRYPOINT [ "/make-bios" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user