Permalink
Cannot retrieve contributors at this time
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?
docker/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (25 sloc)
1.35 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |