Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
FROM oraclelinux:8.6
RUN yum install epel-release https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
RUN yum groupinstall Xfce -y
RUN yum install mc git wget nano sudo tar bzip2 https://netcologne.dl.sourceforge.net/project/turbovnc/3.0/turbovnc-3.0.x86_64.rpm -y
RUN wget -c https://archive.mozilla.org/pub/seamonkey/releases/2.53.12/linux-x86_64/en-GB/seamonkey-2.53.12.en-GB.linux-x86_64.tar.bz2 -O /opt/seamonkey.tar.bz2
WORKDIR "/opt/"
RUN tar -xvf seamonkey.tar.bz2
RUN rm -f /opt/seamonkey.tar.bz2
WORKDIR "/"
RUN groupadd -g 8888 user
RUN useradd -u 8888 -g 8888 user
RUN mkdir -p /home/user/.vnc
RUN echo $(echo qwerty | /opt/TurboVNC/bin/vncpasswd -f) > /home/user/.vnc/passwd
RUN echo "#!/bin/sh" > /home/user/.vnc/xstartup
RUN echo "startxfce4" > /home/user/.vnc/xstartup
RUN chmod +x /home/user/.vnc/xstartup
RUN mkdir -p /home/user/Desktop
RUN echo -e "[Desktop Entry]\nVersion=1.0\nType=Application\nName=Seamonkey\nExec=/opt/seamonkey/seamonkey\nIcon=web-browser\nTerminal=false" > /home/user/Desktop/Seamonkey.desktop
RUN chmod +x /home/user/Desktop/Seamonkey.desktop
RUN chown -R user:user /home/user
RUN chmod 600 /home/user/.vnc/passwd
RUN usermod -aG wheel user
RUN echo qwerty | passwd -f -u user
EXPOSE 5901
CMD ["su", "user", "-c", "/opt/TurboVNC/bin/vncserver -fg :1 -xstartup /home/user/.vnc/xstartup"]