dkr002 - Docker GUI image

assets folder added to Docker file
This commit is contained in:
Rene V. Vergara A. 2024-06-23 22:14:29 -04:00
parent 7745aa5256
commit c118e168c1
16 changed files with 14 additions and 5 deletions

View file

@ -11,7 +11,7 @@ RUN apt-get install -y \
xfce4 \ xfce4 \
xfce4-goodies \ xfce4-goodies \
tigervnc-standalone-server \ tigervnc-standalone-server \
tigervnc-common \ dbus-x11 \
xfonts-base \ xfonts-base \
xterm \ xterm \
wget wget
@ -27,21 +27,30 @@ RUN apt-get install -y \
RUN apt-get clean \ RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Create a new user (e.g., "zenusr") and set a password # Create a new user (e.g., "zenusr") and set a password
RUN useradd -ms /bin/bash zenusr RUN useradd -ms /bin/bash zenusr
RUN echo "1234\n1234\n" | passwd zenusr RUN echo "1234\n1234\n" | passwd zenusr
RUN usermod -aG sudo zenusr RUN usermod -aG sudo zenusr
# Create an.Xauthority file
RUN touch /home/zenusr/.Xauthority
RUN chown zenusr:zenusr /home/zenusr/.Xauthority
# Configure VNC server # Configure VNC server
RUN mkdir -p /home/zenusr/.vnc RUN mkdir -p /home/zenusr/.vnc
RUN echo "vnc1234" | vncpasswd -f > /home/zenusr/.vnc/passwd RUN echo "vnc1234" | vncpasswd -f > /home/zenusr/.vnc/passwd
RUN chmod 600 /home/zenusr/.vnc/passwd RUN chmod 600 /home/zenusr/.vnc/passwd
# Create startup script for VNC seriver # Create startup script for VNC seriver
RUN echo -e '#!/bin/bash\nxrdb $HOME/.Xresources\nstartxfce4 &' > /home/zenusr/.vnc/xstartup RUN echo '#!/bin/bash\nxrdb /home/zenusr/.Xresources\nstartxfce4 &' > /home/zenusr/.vnc/xstartup
RUN chmod +x /home/zenusr/.vnc/xstartup RUN chmod +x /home/zenusr/.vnc/xstartup
RUN chown zenusr:zenusr -R /home/zenusr/.vnc RUN chown zenusr:zenusr -R /home/zenusr/.vnc
RUN mkdir /home/zenusr/assets
COPY assets/* /home/zenusr/assets/
RUN chown zenusr:zenusr -R /home/zenusr/assets
COPY bash_rc_adm /root/.bashrc COPY bash_rc_adm /root/.bashrc
COPY bash_rc_usr /home/zenusr/.bashrc COPY bash_rc_usr /home/zenusr/.bashrc
COPY zenith /usr/local/bin COPY zenith /usr/local/bin
@ -52,15 +61,15 @@ COPY libc-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
COPY libc-dev-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/ COPY libc-dev-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
COPY libc6_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/ COPY libc6_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
RUN echo -e '#!/bin/bash\ncd /home/zenusr/Downloads\ndpkg -i libc6_2.38-1ubuntu6_amd64.deb libc-bin_2.38-1ubuntu6_amd64.deb libc-dev-bin_2.38-1ubuntu6_amd64.deb' > /usr/local/bin/updlibc RUN echo '#!/bin/bash\ncd /home/zenusr/Downloads\ndpkg -i libc6_2.38-1ubuntu6_amd64.deb libc-bin_2.38-1ubuntu6_amd64.deb libc-dev-bin_2.38-1ubuntu6_amd64.deb' > /usr/local/bin/updlibc
RUN chmod +x /usr/local/bin/updlibc RUN chmod +x /usr/local/bin/updlibc
RUN updlibc RUN updlibc
RUN echo -e '#!/bin/bash\nvncserver -geometry 1360x768 -depth 24' > /usr/local/bin/startvnc RUN echo '#!/bin/bash\nvncserver -geometry 1360x768 -depth 24 -SendCutText' > /usr/local/bin/startvnc
RUN chmod +x /usr/local/bin/startvnc RUN chmod +x /usr/local/bin/startvnc
# Set the user to "zenusr" # Set the user to "zenusr"
USER zenusr #USER zenusr
WORKDIR /home/zenusr WORKDIR /home/zenusr
ENV USER=zenusr ENV USER=zenusr

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.