docker安装LibreOffice

匿名 (未验证) 提交于 2019-12-03 00:11:01
Dockerfile:
    
FROM centos
# RUN yum install kde-l10n-Chinese -y
# RUN yum install glibc-common -y
# RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
RUN yum update -y && yum install telnet -y && yum remove epel-release -y \
&& yum update -y \
&& yum install epel-release -y \ && yum groupinstall "Fonts" -y \
&& yum groupinstall "Input Methods" -y \  
   && rm -rf /etc/localtime \
   && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
   && yum -y install kde-l10n-Chinese \
&& yum -y reinstall glibc-common && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \
&& yum clean all
ENV LC_ALL zh_CN.utf8 # 设置中文支持环境
VOLUME /tmp
ADD LibreOffice_6.3.1_Linux_x86-64_rpm.tar.gz /tmp/
RUN cd /tmp
# cd /libreoffice6.3/RPMS && \
# yum install *.rpm && \
RUN yum install -y java-1.8.0-openjdk.x86_64
ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64
ENV TZ 'Asia/Shanghai'
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ARG idoc_document8600.jar
COPY idoc_document8600.jar app.jar
CMD ["/root/start.sh"]
ENTRYPOINT ["java","-jar","/app.jar"]
 
 

docker build -t idoc_document8600 .

docker run -d --name idoc_document8600 -p 8600:8600 -v /var/lib/docker/containers/idoc_document:/tmp/idoc_document -v /opt:/opt -v /docker/mnt/:/mnt/save/ -v /docker/temporary/:/mnt/temporary/ -v /usr/local/myTomcat/myActivity/idoc_image/:/mnt/idoc_image/ --privileged=true  idoc_document8600

 

cd /tmp/libreoffice6.3/RPMS

 

yum install *.rpm 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!