Some operating systems and tools for building custom OSs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8KB

  1. FROM debian:sid
  2. ARG QEMU_VER=3.0.0
  3. RUN apt-get -y update \
  4. && apt-get -y upgrade \
  5. && apt-get install -y \
  6. build-essential \
  7. pkg-config \
  8. curl \
  9. xz-utils
  10. RUN curl -O https://download.qemu.org/qemu-${QEMU_VER}.tar.xz \
  11. && tar xvf qemu-${QEMU_VER}.tar.xz
  12. RUN apt-get install -y \
  13. python \
  14. libaio-dev \
  15. libcap-dev \
  16. libcap-ng-dev \
  17. liblzo2-dev \
  18. texinfo \
  19. vde2 \
  20. zlib1g-dev \
  21. libpixman-1-dev \
  22. libglib2.0-dev
  23. RUN cd qemu-${QEMU_VER} \
  24. && ./configure \
  25. --prefix=/ \
  26. --static \
  27. --python=/usr/bin/python2 \
  28. --audio-drv-list="" \
  29. --disable-docs \
  30. --disable-debug-info \
  31. --disable-opengl \
  32. --disable-virglrenderer \
  33. --disable-vte \
  34. --disable-gtk \
  35. --disable-sdl \
  36. --disable-bluez \
  37. --disable-spice \
  38. --disable-vnc \
  39. --disable-curses \
  40. --disable-smartcard \
  41. --disable-libnfs \
  42. --disable-libusb \
  43. --disable-glusterfs \
  44. --disable-werror \
  45. --target-list="x86_64-softmmu,i386-softmmu,aarch64-softmmu,arm-softmmu,ppc64-softmmu,s390x-softmmu"
  46. RUN cd qemu-${QEMU_VER} && make && make install
  47. FROM alpine:latest as qemu
  48. COPY --from=0 /bin/qemu-ga /bin/
  49. COPY --from=0 /bin/qemu-img /bin/
  50. COPY --from=0 /bin/qemu-io /bin/
  51. COPY --from=0 /bin/qemu-nbd /bin/
  52. COPY --from=0 /bin/qemu-pr-helper /bin/
  53. COPY --from=0 /bin/qemu-system-aarch64 /bin/
  54. COPY --from=0 /bin/qemu-system-arm /bin/
  55. COPY --from=0 /bin/qemu-system-i386 /bin/
  56. COPY --from=0 /bin/qemu-system-ppc64 /bin/
  57. COPY --from=0 /bin/qemu-system-s390x /bin/
  58. COPY --from=0 /bin/qemu-system-x86_64 /bin/
  59. COPY --from=0 /share/qemu/ /share/qemu/
  60. COPY --from=0 /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/
  61. # COPY --from=0 /etc/nsswitch.conf /etc/