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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

29 lines
525B

  1. FROM ubuntu:bionic as builder
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. RUN apt update && \
  4. apt install -y \
  5. libguestfs-tools \
  6. bash \
  7. libosinfo-bin \
  8. libvirt-bin \
  9. libvirt-clients \
  10. qemu-user \
  11. qemu-utils \
  12. sudo \
  13. man-db \
  14. virtinst
  15. RUN useradd -m user
  16. USER user
  17. WORKDIR /home/user
  18. RUN qemu-img create -f qcow2 image.qcow2 100G
  19. ADD . /home/user/
  20. USER root
  21. RUN chown user:user /home/user/* && chmod a+rwX /home/user/*
  22. USER user
  23. RUN /bin/bash /home/user/install.sh
  24. ENTRYPOINT /bin/bash