Some checks failed
Test / test (push) Has been cancelled
Files in /shared/ are already executable from host mount, no need to chmod at build time (which fails anyway since /shared/ doesn't exist during build). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
827 B
Docker
Executable File
18 lines
827 B
Docker
Executable File
FROM ubuntu:24.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y qemu-system-x86 qemu-utils novnc websockify x11vnc xvfb fluxbox xterm nano oathtool openssh-server supervisor iproute2 bridge-utils iptables nano net-tools p7zip-full dnsmasq && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Setup SSH
|
|
RUN mkdir /var/run/sshd && echo 'root:vmpassword' | chpasswd && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
|
|
WORKDIR /vm
|
|
|
|
RUN ln -s /shared/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
RUN ln -s /shared/start-vm.sh /usr/local/bin/start-vm.sh
|
|
RUN ln -s /shared/setup-network.sh /usr/local/bin/setup-network.sh
|
|
RUN ln -s /shared/start-dnsmasq.sh /usr/local/bin/start-dnsmasq.sh
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|