https://gitee.com/infrastlabs/docker-headless?_from=gitee_search#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B
https://gitee.com/infrastlabs/docker-headless?_from=gitee_search#/infrastlabs/docker-headless/blob/dev/deploy/k8s-headless/README.md
sudo apt-get install libdata-hexdumper-perl
docker run -p 10081:10081 --shm-size 1g --user root reg.local.yjzhixue.com/yjzhixue/kp-office-wps:test_v1.0.15
java -jar /wps-office.jar --spring.config.location=classpath:/application.yml,/config --logging.config=/config/logback-spring.xml
FROM infrastlabs/docker-headless
user root
# 添加字体
ADD ./src/wps/fonts/ /usr/share/fonts/wps-fonts/
# 测试数据
ADD ./src/wps/officefile/a.pptx /home/headless/a.pptx
ADD ./src/wps/officefile/b.pptx /home/headless/b.pptx
# 更新源
RUN sudo apt-get clean && apt-get update
# 安装必须软件
RUN sudo apt -y install bsdmainutils firefox-esr libglu1-mesa xdg-utils
# jdk
ADD ./src/jdk1.8.0_291/ /home/headless/jdk1.8.0_291/
# WPS三件套(最新版本的wps安装会有问题)
# https://blog.csdn.net/u012939880/article/details/89439647 #wps_symbol_fonts.zip
# RUN wget https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/10161/wps-office_11.1.0.10161_amd64.deb \
ADD ./src/wps/wps-office_11.1.0.10161_amd64.deb /usr/local/wps.deb
RUN chmod +x /usr/local/wps.deb \
&& sudo dpkg -i /usr/local/wps.deb \
&& rm -rf /usr/local/wps.deb
# 支持中文输入法
RUN sudo sed -i "1a export XMODIFIERS=@im=ibus" /usr/bin/{wps,wpp,et}
RUN sudo sed -i "2a export QT_IM_MODULE=ibus" /usr/bin/{wps,wpp,et}
# docker build -t reg.local.yjzhixue.com/yjzhixue/wps-office:1.0 -f Dockerfile.debian.oraclejdk .
# docker run -p 10081:10081 --shm-size 1g --user root reg.local.yjzhixue.com/yjzhixue/wps-office:1.0
# docker push reg.local.yjzhixue.com/yjzhixue/wps-office:1.0
# 官方
# docker run -p 10081:10081 --user root infrastlabs/docker-headless
# 网页访问
# http://localhost:10081
# docker run -p 10081:10081 --shm-size 1g --user root reg.local.yjzhixue.com/yjzhixue/kp-office-wps:test_v1.0.6
注意:本文归作者所有,未经作者允许,不得转载