2023-06-23 23:55:13 +02:00
|
|
|
# -------------------- 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
|
2023-06-24 00:36:18 +02:00
|
|
|
# VNC Auth
|
2023-06-23 23:55:13 +02:00
|
|
|
RUN mkdir /root/.vnc && \
|
|
|
|
echo "debian"|vncpasswd -f > /root/.vnc/passwd && \
|
|
|
|
chmod 0600 /root/.vnc/passwd
|
2023-06-24 00:36:18 +02:00
|
|
|
RUN touch /root/.Xresources
|
|
|
|
# VNC Port
|
|
|
|
EXPOSE 5901
|
|
|
|
|
|
|
|
# Environment (persistent in container)
|
|
|
|
ENV USER=root
|
2023-06-23 23:55:13 +02:00
|
|
|
|
|
|
|
# Launch
|
2023-06-24 00:36:18 +02:00
|
|
|
#CMD ["bash"]
|
2023-06-24 00:59:54 +02:00
|
|
|
CMD ["vncserver :5901 -geometry 1280x800 -depth 24"]
|