Skip to content

Commit a10238a

Browse files
author
fujimoto
committed
Merge branch 'develop' into nii-mergework-201907
2 parents 6c57be5 + dbff7b6 commit a10238a

File tree

1 file changed

+8
-33
lines changed

1 file changed

+8
-33
lines changed

Dockerfile

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
FROM python:3.5-slim-stretch
1+
FROM python:3.5-slim-buster
22

33
# ensure unoconv can locate the uno library
4-
ENV PYTHONPATH=/usr/lib/python3/dist-packages
4+
ENV PYTHONPATH /usr/lib/python3/dist-packages
55

66
RUN usermod -d /home www-data \
77
&& chown www-data:www-data /home \
8+
# -slim images strip man dirs, but java won't install unless this dir exists.
9+
&& mkdir -p /usr/share/man/man1 \
810
&& apt-get update \
911
# mfr dependencies
1012
&& apt-get install -y \
@@ -27,6 +29,8 @@ RUN usermod -d /home www-data \
2729
freecad \
2830
# pspp dependencies
2931
pspp \
32+
# unoconv dependencies
33+
libreoffice \
3034
# gosu dependencies
3135
curl \
3236
gnupg2 \
@@ -53,37 +57,8 @@ RUN usermod -d /home www-data \
5357
&& rm -rf /var/lib/apt/lists/* \
5458
&& pip install -U pip \
5559
&& pip install setuptools==37.0.0 \
56-
&& mkdir -p /code
57-
58-
ENV LIBREOFFICE_VERSION 6.1.6.3
59-
ENV LIBREOFFICE_ARCHIVE LibreOffice_6.1.6.3_Linux_x86-64_deb.tar.gz
60-
ENV LIBREOFFICE_MIRROR_URL https://downloadarchive.documentfoundation.org/libreoffice/old/
61-
RUN apt-get update \
62-
&& apt-get install -y \
63-
curl \
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 \
72-
&& curl -SL "$LIBREOFFICE_MIRROR_URL/$LIBREOFFICE_VERSION/deb/x86_64/$LIBREOFFICE_ARCHIVE" -o $LIBREOFFICE_ARCHIVE \
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 \
80-
&& apt-get clean \
81-
&& apt-get autoremove -y \
82-
curl \
83-
gnupg2 \
84-
&& rm -rf /var/lib/apt/lists/*
85-
86-
RUN pip install unoconv==0.8.2
60+
&& mkdir -p /code \
61+
&& pip install unoconv==0.8.2
8762

8863
WORKDIR /code
8964

0 commit comments

Comments
 (0)