Dockerfile

FROM centos:7.9.2009

ADD LibreOffice_7.2.5_Linux_x86-64_rpm.tar.gz /tmp
ADD LibreOffice_7.2.5_Linux_x86-64_rpm_langpack_zh-CN.tar.gz /tmp

RUN  cd /tmp/LibreOffice_7.2.5.2_Linux_x86-64_rpm/RPMS \
    && yum localinstall *.rpm -y  \
    && yum install cairo -y \
    && yum install cups-libs -y \
    && yum install libSM -y

RUN cd /tmp/LibreOffice_7.2.5.2_Linux_x86-64_rpm_langpack_zh-CN/RPMS \
    && yum localinstall *.rpm -y

docker build -t libre:01 .

说明
https://www.cnblogs.com/jxd283465/p/12486385.html