Create Dockerfile

pull/1/head
don 3 years ago committed by GitHub
parent c86e88f201
commit 6720f2749c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,20 @@
FROM alpine:latest
LABEL maintainer="Don <novaspirit@novaspirit.com>"
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" ]
Loading…
Cancel
Save