Add linux-vm Docker build files for rego-tunnel
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2025-12-25 07:39:42 +00:00
parent 25a1985d20
commit 3a674bc44d
4 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
qemu-system-x86 \
qemu-utils \
novnc \
websockify \
openssh-server \
supervisor \
&& 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
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY start-vm.sh /usr/local/bin/start-vm.sh
RUN chmod +x /usr/local/bin/start-vm.sh
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]