Skip to content

Commit 419bc2a

Browse files
committed
Merge branch 'feature/dockerfile-updates' into develop
2 parents 822245c + f724ecc commit 419bc2a

File tree

2 files changed

+13
-30
lines changed

2 files changed

+13
-30
lines changed

Dockerfile

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.5-slim-buster
1+
FROM python:3.6-slim-buster
22

33
# ensure unoconv can locate the uno library
44
ENV PYTHONPATH /usr/lib/python3/dist-packages
@@ -25,49 +25,32 @@ RUN usermod -d /home www-data \
2525
libxml2-dev \
2626
libxslt1-dev \
2727
zlib1g-dev \
28+
gnupg2 \
2829
# convert .step to jsc3d-compatible format
2930
freecad \
3031
# pspp dependencies
3132
pspp \
3233
# unoconv dependencies
3334
libreoffice \
34-
# gosu dependencies
35-
curl \
36-
gnupg2 \
37-
# gosu
38-
&& export GOSU_VERSION='1.10' \
39-
&& mkdir ~/.gnupg && chmod 600 ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
40-
&& for server in hkp://ipv4.pool.sks-keyservers.net:80 \
41-
hkp://ha.pool.sks-keyservers.net:80 \
42-
hkp://pgp.mit.edu:80 \
43-
hkp://keyserver.pgp.com:80 \
44-
; do \
45-
gpg --keyserver "$server" --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && break || echo "Trying new server..." \
46-
; done \
47-
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
48-
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
49-
&& gpg --verify /usr/local/bin/gosu.asc \
50-
&& rm /usr/local/bin/gosu.asc \
51-
&& chmod +x /usr/local/bin/gosu \
52-
# /gosu
35+
# grab gosu for easy step-down from root
36+
gosu \
5337
&& apt-get clean \
5438
&& apt-get autoremove -y \
55-
curl \
56-
gnupg2 \
57-
&& rm -rf /var/lib/apt/lists/* \
58-
&& pip install -U pip \
59-
&& pip install setuptools==37.0.0 \
60-
&& mkdir -p /code \
61-
&& pip install unoconv==0.8.2
39+
&& rm -rf /var/lib/apt/lists/*
6240

41+
RUN mkdir -p /code
6342
WORKDIR /code
6443

65-
COPY ./requirements.txt ./
44+
RUN pip install -U pip==18.1
45+
RUN pip install setuptools==37.0.0
46+
RUN pip install unoconv==0.8.2
47+
48+
COPY ./requirements.txt /code/
6649

6750
RUN pip install --no-cache-dir -r ./requirements.txt
6851

6952
# Copy the rest of the code over
70-
COPY ./ ./
53+
COPY ./ /code/
7154

7255
ARG GIT_COMMIT=
7356
ENV GIT_COMMIT ${GIT_COMMIT}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jinja2==2.10.1
3636
mistune==0.8.1
3737

3838
# Pdf
39-
reportlab==3.4.0
39+
reportlab==3.6.5
4040

4141
# Pptx
4242
# python-pptx==0.5.7

0 commit comments

Comments
 (0)