still hacking
This commit is contained in:
31
Dockerfile
31
Dockerfile
@@ -1,3 +1,28 @@
|
||||
FROM ubuntu:bionic
|
||||
ADD ./run.sh /tmp/run.sh
|
||||
RUN bash /tmp/run.sh && rm /tmp/run.sh
|
||||
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 \
|
||||
virtinst
|
||||
|
||||
RUN useradd -m user
|
||||
|
||||
RUN qemu-img create -f qcow2 /image.qcow2 100G
|
||||
|
||||
ADD . /home/user/
|
||||
|
||||
RUN chown user:user /*.qcow2 && chown user:user /home/user/* && chmod a+rwX /home/user/*
|
||||
|
||||
RUN sudo --login -u user /home/user/install.sh
|
||||
|
||||
ENTRYPOINT /bin/bash
|
||||
|
||||
Reference in New Issue
Block a user