Add linux-vm Docker build files for rego-tunnel
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
25
apps/rego-tunnel/build/Dockerfile
Normal file
25
apps/rego-tunnel/build/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user