Node.js 使用Docker安装Libreoffice 7时缺少存储箱中的Soffice

Node.js 使用Docker安装Libreoffice 7时缺少存储箱中的Soffice,node.js,docker,pdf,powerpoint,libreoffice,Node.js,Docker,Pdf,Powerpoint,Libreoffice,我试图在Ubuntu 18.04(WSL)上的docker容器中安装Libreoffice 7。但是,docker容器中的/usr/bin文件夹中缺少soffice。还有什么需要安装的吗 Dockerfile中的命令: RUN wget -q http://www.ftp.ne.jp/office/tdf/libreoffice/stable/7.0.0/deb/x86_64/LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \ && tar

我试图在Ubuntu 18.04(WSL)上的docker容器中安装Libreoffice 7。但是,docker容器中的
/usr/bin
文件夹中缺少soffice。还有什么需要安装的吗

Dockerfile中的命令:

RUN wget -q http://www.ftp.ne.jp/office/tdf/libreoffice/stable/7.0.0/deb/x86_64/LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && tar -xf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && cd ./LibreOffice_7.0.0.3_Linux_x86-64_deb/DEBS && dpkg -i *.deb
libreoffice7.0 --version 
LibreOffice 7.0.0.3 8061b3e9204bef6b321a21033174034a5e2ea88e (in docker container)
背景:

RUN wget -q http://www.ftp.ne.jp/office/tdf/libreoffice/stable/7.0.0/deb/x86_64/LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && tar -xf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && cd ./LibreOffice_7.0.0.3_Linux_x86-64_deb/DEBS && dpkg -i *.deb
libreoffice7.0 --version 
LibreOffice 7.0.0.3 8061b3e9204bef6b321a21033174034a5e2ea88e (in docker container)
我正在尝试使用“office to PDF”节点包将PPT转换为PDF。这有一个Libreoffice(soffice命令)依赖项。 当在docker中安装unoconv(运行apt get install-y unoconv)时,soffice命令可用。但它有Libreoffice版本5(Libreoffice 5.2.7.22000(Build:2))。我们需要Libreoffice版本7用于我们的PPT到PDF转换

问题:

RUN wget -q http://www.ftp.ne.jp/office/tdf/libreoffice/stable/7.0.0/deb/x86_64/LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && tar -xf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && cd ./LibreOffice_7.0.0.3_Linux_x86-64_deb/DEBS && dpkg -i *.deb
libreoffice7.0 --version 
LibreOffice 7.0.0.3 8061b3e9204bef6b321a21033174034a5e2ea88e (in docker container)
比如,一个PPT在一行中显示100个字符。使用Libreoffice 5将此PPT转换为PDF时;新创建的PDF在两行中显示100个字符。 顺便说一句,Libreoffice 7将PPT转换为windows 10中预期的PDF格式。(单线100个字符)

注意:

RUN wget -q http://www.ftp.ne.jp/office/tdf/libreoffice/stable/7.0.0/deb/x86_64/LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && tar -xf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz \
  && cd ./LibreOffice_7.0.0.3_Linux_x86-64_deb/DEBS && dpkg -i *.deb
libreoffice7.0 --version 
LibreOffice 7.0.0.3 8061b3e9204bef6b321a21033174034a5e2ea88e (in docker container)