From 6720f2749cf4ac1e917e2ec23b7bad3df63fc969 Mon Sep 17 00:00:00 2001 From: don Date: Tue, 15 Nov 2022 16:12:19 -0500 Subject: [PATCH] Create Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..52e460c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine:latest + +LABEL maintainer="Don " + +RUN apk add --no-cache sudo git xfce4 faenza-icon-theme bash python3 tigervnc xfce4-terminal\ + && adduser -h /home/alpine -s /bin/bash -S -D alpine && echo -e "alpine\nalpine" | passwd alpine \ + && echo 'alpine ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \ + && git clone https://github.com/novnc/noVNC /home/alpine/noVNC \ + && git clone https://github.com/novnc/websockify /home/alpine/noVNC/utils/websockify + +USER alpine +WORKDIR /home/alpine + +RUN mkdir -p /home/alpine/.vnc \ + && echo -e "#!/bin/bash\nstartxfce4 &" > /home/alpine/.vnc/xstartup \ + && echo -e "alpine\nalpine\nn\n" | vncpasswd + +COPY entry.sh /entry.sh + +CMD [ "/bin/bash", "/entry.sh" ]