|
|
|
FROM ubuntu:latest |
|
|
|
RUN apt-get update && \ |
|
apt-get install -y qemu-system-x86 novnc websockify git && \ |
|
apt-get clean |
|
|
|
|
|
RUN mkdir -p /noVNC |
|
|
|
|
|
RUN git clone https://github.com/novnc/noVNC.git /noVNC |
|
|
|
|
|
EXPOSE 5900 7860 |
|
RUN qemu-img create vm.img 32G |
|
RUN chmod +777 vm.img |
|
RUN cp vm.img /home/ubuntu/vm.img |
|
RUN chmod +777 /home/ubuntu/vm.img |
|
RUN wget https://github.com/tendstofortytwo/neofetch-linux/releases/download/v0.0.1/neofetch-linux-x86_64.iso |
|
RUN mv neofetch-linux-x86_64.iso NclearOS2.iso |
|
RUN chmod +x NclearOS2.iso |
|
RUN cp NclearOS2.iso /home/ubuntu |
|
|
|
CMD /bin/bash -c " \ |
|
nohup qemu-system-x86_64 -cpu Nehalem -m 2G -cdrom ~/NclearOS2.iso -hda ~/vm.img -vnc :0 -daemonize -vga vmware -usbdevice tablet && \ |
|
cd /noVNC && \ |
|
websockify --web . 7860 localhost:5900" |