Files
linuxkit/tools/qemu/Dockerfile
Rolf Neugebauer 61727d3b50 tools: Update to the latest alpine base image
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-03-13 14:39:57 +00:00

24 lines
606 B
Docker

FROM linuxkit/alpine:96ad1eb5ec262b4cd0eef574cdc0b225b502d9ee 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 \
qemu-img && \
case $(uname -m) in \
x86_64) \
apk add --no-cache --initdb -p /out qemu-system-x86_64 ovmf; \
;; \
aarch64) \
apk add --no-cache --initdb -p /out qemu-system-aarch64; \
;; \
esac
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
FROM scratch
ENTRYPOINT []
CMD []
WORKDIR /
COPY --from=mirror /out/ /