Created
June 26, 2020 01:57
-
-
Save rawinng/d363e19e99f9672be228e448f78b4a1a to your computer and use it in GitHub Desktop.
File for special docker request project
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 centos:8 | |
# Alternative mirror: https://sourceforge.net/projects/openofficeorg.mirror/ | |
# libXmu-1.1.2-2.el7.x86_64 required for libXmu.so.6, freetype-2.4.15-11.el7.x86_64 required for libfreetype.so.6 | |
RUN cd /tmp && \ | |
curl -LO https://archive.apache.org/dist/incubator/ooo/files/stable/3.4.1/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-rpm_en-US.tar.gz && \ | |
tar -xzf Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-rpm_en-US.tar.gz && \ | |
rm -f Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-rpm_en-US.tar.gz && \ | |
yum install -y libXmu.x86_64 freetype.x86_64 && \ | |
yum install -y java-11-openjdk && \ | |
yum install -y en-US/RPMS/*.rpm && \ | |
yum clean all && \ | |
rm -Rf en-US | |
RUN cd /tmp && \ | |
curl -o tomcat-9.0.36.tar.gz -s https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.36/bin/apache-tomcat-9.0.36.tar.gz && \ | |
tar xvf tomcat-9.0.36.tar.gz -C / && \ | |
ln -s /apache-tomcat-9.0.36/ /tomcat && \ | |
groupadd --system tomcat && \ | |
useradd -d /usr/share/tomcat -r -s /bin/false -g tomcat tomcat && \ | |
chown tomcat:tomcat -R /apache-tomcat-9.0.36 && \ | |
chown tomcat:tomcat -R /tomcat | |
EXPOSE 8080 | |
#ENTRYPOINT ["/opt/openoffice.org3/program/soffice.bin"] | |
#CMD ["-accept=\"socket,host=127.0.0.1,port=2002;urp;\"", "-env:UserInstallation=file:///tmp/.jodconverter_socket_host-127.0.0.1_port-2002", "-headless", "-nocrashreport", "-nodefault", "-nofirststartwizard", "-nolockcheck", "-nologo", "-norestore"] | |
CMD ["/tomcat/bin/catalina.sh", "run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment