You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alpine_xfce4_noVNC/Dockerfile

26 lines
832 B
Docker

FROM alpine:latest
ARG password=alpine
ARG user=alpine
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/$user -s /bin/bash -S -D $user \
&& echo -e "${user} with password ${password}"\
&& echo -e "${password}\n${password}" | passwd $user \
&& echo '${user} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
&& git clone https://github.com/novnc/noVNC /opt/noVNC \
&& git clone https://github.com/novnc/websockify /opt/noVNC/utils/websockify
USER $user
WORKDIR /home/$user
RUN mkdir -p /home/$user/.vnc \
&& echo -e "#!/bin/bash\nstartxfce4 &" > /home/$user/.vnc/xstartup \
&& echo -e "${password}\n${password}\nn\n" | vncpasswd
COPY entry.sh /entry.sh
CMD [ "/bin/bash", "/entry.sh" ]