Skip to content

Commit d2f19a1

Browse files
committed
Merge branch 'feature/dockerfile-updates' into develop
* LO no longer provides an archive for old releases. Update Dockerfile to latest stable release (v6.1.5). Closes: #356
2 parents b1fef7f + d7c79ef commit d2f19a1

File tree

1 file changed

+28
-20
lines changed

1 file changed

+28
-20
lines changed

Dockerfile

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.5-slim-jessie
1+
FROM python:3.5-slim-stretch
22

33
# ensure unoconv can locate the uno library
44
ENV PYTHONPATH=/usr/lib/python3/dist-packages
@@ -18,7 +18,7 @@ RUN usermod -d /home www-data \
1818
libevent-dev \
1919
libfreetype6-dev \
2020
libjpeg-dev \
21-
libpng12-dev \
21+
libpng-dev \
2222
libtiff5-dev \
2323
libxml2-dev \
2424
libxslt1-dev \
@@ -32,14 +32,13 @@ RUN usermod -d /home www-data \
3232
gnupg2 \
3333
# gosu
3434
&& export GOSU_VERSION='1.10' \
35-
&& for key in \
36-
# GOSU
37-
B42F6819007F00F88E364FD4036A9C25BF357DD4 \
35+
&& mkdir ~/.gnupg && chmod 600 ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
36+
&& for server in hkp://ipv4.pool.sks-keyservers.net:80 \
37+
hkp://ha.pool.sks-keyservers.net:80 \
38+
hkp://pgp.mit.edu:80 \
39+
hkp://keyserver.pgp.com:80 \
3840
; do \
39-
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net:80 --recv-keys "$key" || \
40-
gpg --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys "$key" || \
41-
gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" || \
42-
gpg --keyserver hkp://keyserver.pgp.com:80 --recv-keys "$key" \
41+
gpg --keyserver "$server" --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && break || echo "Trying new server..." \
4342
; done \
4443
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
4544
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
@@ -50,29 +49,38 @@ RUN usermod -d /home www-data \
5049
&& apt-get clean \
5150
&& apt-get autoremove -y \
5251
curl \
52+
gnupg2 \
5353
&& rm -rf /var/lib/apt/lists/* \
5454
&& pip install -U pip \
5555
&& pip install setuptools==37.0.0 \
5656
&& mkdir -p /code
5757

58-
ENV LIBREOFFICE_VERSION 6.0.2.1
59-
ENV LIBREOFFICE_ARCHIVE LibreOffice_6.0.2.1_Linux_x86-64_deb.tar.gz
60-
ENV LIBREOFFICE_MIRROR_URL https://downloadarchive.documentfoundation.org/libreoffice/old/
58+
ENV LIBREOFFICE_VERSION 6.1.5
59+
ENV LIBREOFFICE_ARCHIVE LibreOffice_6.1.5_Linux_x86-64_deb.tar.gz
60+
ENV LIBREOFFICE_MIRROR_URL https://download.documentfoundation.org/libreoffice/stable/
6161
RUN apt-get update \
6262
&& apt-get install -y \
6363
curl \
64-
&& gpg --keyserver pool.sks-keyservers.net --recv-keys AFEEAEA3 \
64+
gnupg2 \
65+
&& for server in hkp://ipv4.pool.sks-keyservers.net:80 \
66+
hkp://ha.pool.sks-keyservers.net:80 \
67+
hkp://pgp.mit.edu:80 \
68+
hkp://keyserver.pgp.com:80 \
69+
; do \
70+
gpg --keyserver "$server" --recv-keys AFEEAEA3 && break || echo "Trying new server..." \
71+
; done \
6572
&& curl -SL "$LIBREOFFICE_MIRROR_URL/$LIBREOFFICE_VERSION/deb/x86_64/$LIBREOFFICE_ARCHIVE" -o $LIBREOFFICE_ARCHIVE \
66-
&& curl -SL "$LIBREOFFICE_MIRROR_URL/$LIBREOFFICE_VERSION/deb/x86_64/$LIBREOFFICE_ARCHIVE.asc" -o $LIBREOFFICE_ARCHIVE.asc \
67-
&& gpg --verify "$LIBREOFFICE_ARCHIVE.asc" \
68-
&& mkdir /tmp/libreoffice \
69-
&& tar -xvf "$LIBREOFFICE_ARCHIVE" -C /tmp/libreoffice/ --strip-components=1 \
70-
&& dpkg -i /tmp/libreoffice/**/*.deb \
71-
&& rm $LIBREOFFICE_ARCHIVE* \
72-
&& rm -Rf /tmp/libreoffice \
73+
&& curl -SL "$LIBREOFFICE_MIRROR_URL/$LIBREOFFICE_VERSION/deb/x86_64/$LIBREOFFICE_ARCHIVE.asc" -o $LIBREOFFICE_ARCHIVE.asc \
74+
&& gpg --verify "$LIBREOFFICE_ARCHIVE.asc" \
75+
&& mkdir /tmp/libreoffice \
76+
&& tar -xvf "$LIBREOFFICE_ARCHIVE" -C /tmp/libreoffice/ --strip-components=1 \
77+
&& dpkg -i /tmp/libreoffice/**/*.deb \
78+
&& rm $LIBREOFFICE_ARCHIVE* \
79+
&& rm -Rf /tmp/libreoffice \
7380
&& apt-get clean \
7481
&& apt-get autoremove -y \
7582
curl \
83+
gnupg2 \
7684
&& rm -rf /var/lib/apt/lists/*
7785

7886
RUN pip install unoconv==0.8.2

0 commit comments

Comments
 (0)