FROM alpine:latest ENV QEMU_VERSION=4.0.0 ENV DOWNLOAD_TOOLS="wget gnupg tar xz" RUN apk update RUN apk add --no-cache ${DOWNLOAD_TOOLS} RUN wget https://download.qemu.org/qemu-4.0.0.tar.xz &&\ tar xvJf qemu-4.0.0.tar.xz ENV BUILD_TOOLS="glib-dev autoconf automake bison flex gcc glib-dev g++ libtool linux-headers make patch python pixman pixman-dev" ENV DEBUG_TOOLS="gdb less" ENV RUNTIME_DEPENDENCIES="glib libstdc++ libbz2" RUN apk add --no-cache --update ${BUILD_TOOLS} &&\ apk add --no-cache --update ${RUNTIME_DEPENDENCIES} &&\ apk add --no-cache --update ${DEBUG_TOOLS} RUN cd qemu-4.0.0 &&\ ./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,arm-linux-user --enable-kvm --enable-debug &&\ make -j