Dockerfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. FROM centos:centos7.6.1810
  2. MAINTAINER chenjh "842761733@qq.com"
  3. ADD jodconverter-web/target/kkFileView-*.tar.gz /opt/
  4. COPY fonts/* /usr/share/fonts/chienes/
  5. RUN yum install -y kde-l10n-Chinese &&\
  6. yum install -y glibc-common &&\
  7. yum install -y fontconfig &&\
  8. yum install -y mkfontscale &&\
  9. localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 &&\
  10. echo "LANG=zh_CN.UTF-8" > /etc/locale.conf &&\
  11. source /etc/locale.conf &&\
  12. export LANG=zh_CN.UTF-8 &&\
  13. LANG="zh_CN.UTF-8" &&\
  14. ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&\
  15. yum install -y java-1.8.0-openjdk.x86_64 &&\
  16. yum install -y wget &&\
  17. yum install -y libXext.x86_64 &&\
  18. yum groupinstall -y "X Window System" &&\
  19. cd /tmp &&\
  20. wget https://iweb.dl.sourceforge.net/project/openofficeorg.mirror/4.1.6/binaries/zh-CN/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz -cO openoffice_rpm.tar.gz &&\
  21. tar zxf /tmp/openoffice_rpm.tar.gz &&\
  22. cd /tmp/zh-CN/RPMS &&\
  23. rpm -Uvih *.rpm &&\
  24. rpm -Uvih desktop-integration/openoffice4.1.6-redhat-menus-4.1.6-9790.noarch.rpm &&\
  25. rm -f /tmp/openoffice_rpm.tar.gz &&\
  26. rm -rf /tmp/zh-CN &&\
  27. cd /usr/share/fonts/chienes &&\
  28. mkfontscale &&\
  29. mkfontdir &&\
  30. fc-cache -fv
  31. ENV LANG zh_CN.UTF-8
  32. ENV LC_ALL zh_CN.UTF-8
  33. ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.2.0-SNAPSHOT/bin
  34. ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-2.2.0-SNAPSHOT/config/application.properties","-jar","/opt/kkFileView-2.2.0-SNAPSHOT/bin/kkFileView-2.2.0-SNAPSHOT.jar"]