debian-desktop/Dockerfile

43 lines
1.6 KiB
Text
Raw Permalink Normal View History

# -------------------- 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 02:20:48 +02:00
# Password for VNC connection in ARG-BUILD ('debian' by default)
ARG VNCPASSWORD=debian
2023-06-24 00:36:18 +02:00
# VNC Auth
RUN mkdir /root/.vnc && \
2023-06-24 02:20:48 +02:00
echo "$VNCPASSWORD"|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-24 02:00:44 +02:00
# Launch in DISPLAY :1
2023-06-24 01:37:44 +02:00
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]