1
- FROM python:3.5-slim-stretch
1
+ FROM python:3.5-slim-buster
2
2
3
3
# ensure unoconv can locate the uno library
4
- ENV PYTHONPATH= /usr/lib/python3/dist-packages
4
+ ENV PYTHONPATH /usr/lib/python3/dist-packages
5
5
6
6
RUN usermod -d /home www-data \
7
7
&& 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 \
8
10
&& apt-get update \
9
11
# mfr dependencies
10
12
&& apt-get install -y \
@@ -27,6 +29,8 @@ RUN usermod -d /home www-data \
27
29
freecad \
28
30
# pspp dependencies
29
31
pspp \
32
+ # unoconv dependencies
33
+ libreoffice \
30
34
# gosu dependencies
31
35
curl \
32
36
gnupg2 \
@@ -53,37 +57,8 @@ RUN usermod -d /home www-data \
53
57
&& rm -rf /var/lib/apt/lists/* \
54
58
&& pip install -U pip \
55
59
&& pip install setuptools==37.0.0 \
56
- && mkdir -p /code
57
-
58
- ENV LIBREOFFICE_VERSION 6.1.6
59
- ENV LIBREOFFICE_ARCHIVE LibreOffice_6.1.6_Linux_x86-64_deb.tar.gz
60
- ENV LIBREOFFICE_MIRROR_URL https://download.documentfoundation.org/libreoffice/stable/
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
87
62
88
63
WORKDIR /code
89
64
0 commit comments