# -------------------- luisgulo ------------------------- # https://gitea.soloconlinux.org.es/DOCKER/debian-desktop # Debian 12 with Mate Desktop via VNC # ------------------------------------------------------- # Latest Debian distribution FROM debian:latest # ------ Mate Desktop (via MetaPackage) + VNC ------------------------------ RUN apt-get -y update # Include soloconlinux.org.es repo RUN apt-get -y install ca-certificates wget curl gnupg apt-transport-https # Include soloconlinux.org.es repo RUN install -m 0755 -d /etc/apt/keyrings && \ wget https://repositorio.soloconlinux.org.es/soloconlinux.gpg -O /etc/apt/keyrings/soloconlinux.gpg && \ chmod a+r /etc/apt/keyrings/soloconlinux.gpg RUN echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/soloconlinux.gpg] http://repositorio.soloconlinux.org.es/ \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" main contrib non-free" > /etc/apt/sources.list.d/soloconlinux.list # Firefox official from soloconlinux RUN apt-get -y update && apt-get -y install firefox # Install Desktop RUN DEBIAN_FRONTEND=noninteractive apt-get -y install -f mate-desktop-environment mate-desktop-environment-core mate-desktop-environment-extras tightvncserver # Password for VNC connection in ARG-BUILD ('debian' by default) ARG VNCPASSWORD=debian # VNC Auth RUN mkdir /root/.vnc && \ echo "$VNCPASSWORD"|vncpasswd -f > /root/.vnc/passwd && \ chmod 0600 /root/.vnc/passwd RUN touch /root/.Xresources # VNC Port EXPOSE 5901 # Environment (persistent in container) ENV USER=root # Launch in DISPLAY :1 COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]