29 lines
526 B
Docker
29 lines
526 B
Docker
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 \
|
|
virtinst
|
|
|
|
RUN useradd -m user
|
|
USER user
|
|
WORKDIR /home/user
|
|
RUN qemu-img create -f qcow2 image.qcow2 100G
|
|
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
|
|
ENTRYPOINT /bin/bash
|