Skip to content

Commit d128c8c

Browse files
committed
mfr specific libreoffice and unoconv versions
1 parent e4b98b0 commit d128c8c

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

mfr/Dockerfile

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ RUN apt-get update \
2323
libtiff5-dev \
2424
# convert .step to jsc3d-compatible format
2525
freecad \
26-
# unoconv dependencies
27-
&& apt-get install -y \
28-
unoconv \
2926
# pspp dependencies
3027
&& apt-get install -y \
3128
pspp \
@@ -49,6 +46,27 @@ RUN apt-get update \
4946
curl \
5047
&& rm -rf /var/lib/apt/lists/*
5148

49+
ENV LIBREOFFICE_VERSION 6.0.1.1
50+
ENV LIBREOFFICE_ARCHIVE LibreOffice_6.0.1.1_Linux_x86-64_deb.tar.gz
51+
RUN apt-get update \
52+
&& apt-get install -y \
53+
curl \
54+
&& gpg --keyserver pool.sks-keyservers.net --recv-keys AFEEAEA3 \
55+
&& curl -SL "https://downloadarchive.documentfoundation.org/libreoffice/old/$LIBREOFFICE_VERSION/deb/x86_64/$LIBREOFFICE_ARCHIVE" -o $LIBREOFFICE_ARCHIVE \
56+
&& curl -SL "https://downloadarchive.documentfoundation.org/libreoffice/old/$LIBREOFFICE_VERSION/deb/x86_64/$LIBREOFFICE_ARCHIVE.asc" -o $LIBREOFFICE_ARCHIVE.asc \
57+
&& gpg --verify "$LIBREOFFICE_ARCHIVE.asc" \
58+
&& mkdir /tmp/libreoffice \
59+
&& tar -xvf "$LIBREOFFICE_ARCHIVE" -C /tmp/libreoffice/ --strip-components=1 \
60+
&& dpkg -i /tmp/libreoffice/**/*.deb \
61+
&& rm $LIBREOFFICE_ARCHIVE* \
62+
&& rm -Rf /tmp/libreoffice \
63+
&& apt-get clean \
64+
&& apt-get autoremove -y \
65+
curl \
66+
&& rm -rf /var/lib/apt/lists/*
67+
68+
RUN pip install unoconv==0.8.2
69+
5270
ENV SOURCE_BRANCH master
5371
ENV SOURCE_REPO https://github.com/CenterForOpenScience/modular-file-renderer.git
5472
ENV WHEELHOUSE /home/.cache/wheelhouse

0 commit comments

Comments
 (0)