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.
docker-linux-vm/Dockerfile

29 lines
525 B

4 years ago
FROM ubuntu:bionic as builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y \
libguestfs-tools \
bash \
libosinfo-bin \
libvirt-bin \
libvirt-clients \
qemu-user \
qemu-utils \
sudo \
man-db \
4 years ago
virtinst
RUN useradd -m user
USER user
WORKDIR /home/user
RUN qemu-img create -f qcow2 image.qcow2 100G
4 years ago
ADD . /home/user/
USER root
RUN chown user:user /home/user/* && chmod a+rwX /home/user/*
USER user
RUN /bin/bash /home/user/install.sh
4 years ago
ENTRYPOINT /bin/bash