TestA / Dockerfile
hckvps's picture
Update Dockerfile
945d45a verified
raw
history blame contribute delete
657 Bytes
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
ENV PACKAGES="lxde aqemu aria2 qemu-system-x86 htop tigervnc-standalone-server python3-pip python3-websockify python3 git"
RUN apt-get update && apt-get install -y $PACKAGES
RUN git clone https://github.com/novnc/noVNC.git /home/user/noVNC
RUN useradd -m -u 1000 user && usermod -aG sudo user && echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/user && chmod 0440 /etc/sudoers.d/user
RUN sudo chown -R user /home/user
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
CMD vncserver -SecurityTypes None -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860