-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (41 loc) · 1.17 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (41 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# https://github.com/jawg/docker-mapnik3/blob/master/v3.0.16/Dockerfile
FROM jawg/mapnik3:3.0.16
ENV PYTHON_MAPNIK_VERSION v3.0.16
ENV MAPNIK_BUILD_DEPENDENCIES="libboost-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-regex-dev \
libboost-thread-dev \
libboost-system-dev \
libcairo-dev \
libfreetype6-dev \
libgdal-dev \
libharfbuzz-dev \
libicu-dev \
libjpeg-dev \
libpq-dev \
libproj-dev \
librasterlite-dev \
libsqlite3-dev \
libtiff-dev \
libwebp-dev"
ENV BUILD_DEPENDENCIES="build-essential \
ca-certificates \
git \
python3-dev \
python3-setuptools \
libboost-python-dev \
$MAPNIK_BUILD_DEPENDENCIES"
ENV DEPENDENCIES="python3 \
libboost-python1.55.0"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
$BUILD_DEPENDENCIES $DEPENDENCIES \
&& git clone https://github.com/mapnik/python-mapnik.git \
&& cd python-mapnik \
&& git checkout $PYTHON_MAPNIK_VERSION \
&& python3 setup.py install \
&& cd - \
&& rm -r python-mapnik \
&& apt-get autoremove -y --purge $BUILD_DEPENDENCIES \
&& rm -rf /var/lib/apt/lists/*