Docker容器

CentOS或者AWS linux2 容器下安装libreoffice完整Dockerfile

本文主要是介绍CentOS或者AWS linux2 容器下安装libreoffice完整Dockerfile,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
FROM amazonlinux:2.0.20201111.0
RUN COPY simsun.ttc /usr/share/fonts/ttf-dejavu/simsun.ttc
    yum install mkfontscale -y &&\
    yum clean all &&\
    mkfontscale &&\
    mkfontdir &&\
    fc-cache -fv

RUN wget -q https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/7.1.8/rpm/x86_64/LibreOffice_7.1.8_Linux_x86-64_rpm.tar.gz &&\
    mkdir /tmp/LibreOffice &&\
    tar -xzf LibreOffice_7.1.8_Linux_x86-64_rpm.tar.gz -C /tmp/LibreOffice &&\
    yum localinstall -y /tmp/LibreOffice/LibreOffice_7.1.8.1_Linux_x86- 64_rpm/RPMS/*  &&\
    rm -rf /tmp/LibreOffice &&\
    rm -f LibreOffice_7.1.8_Linux_x86-64_rpm.tar.gz &&\
    amazon-linux-extras enable libreoffice &&\
    yum -y install libreoffice-headless &&\
    yum clean all

这篇关于CentOS或者AWS linux2 容器下安装libreoffice完整Dockerfile的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!