This repository has been archived on 2020-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
docker-linux-vm/Dockerfile

29 lines
525 B
Docker
Raw Normal View History

2019-11-13 04:02:24 +00:00
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 \
2019-11-13 05:20:55 +00:00
man-db \
2019-11-13 04:02:24 +00:00
virtinst
RUN useradd -m user
2019-11-13 05:20:55 +00:00
USER user
WORKDIR /home/user
RUN qemu-img create -f qcow2 image.qcow2 100G
2019-11-13 04:02:24 +00:00
ADD . /home/user/
2019-11-13 05:20:55 +00:00
USER root
RUN chown user:user /home/user/* && chmod a+rwX /home/user/*
USER user
2019-11-13 05:26:22 +00:00
RUN /bin/bash /home/user/install.sh
2019-11-13 04:02:24 +00:00
ENTRYPOINT /bin/bash