forked from openmaptiles/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (69 loc) · 1.84 KB
/
Dockerfile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM mdillon/postgis:11
LABEL MAINTAINER "Yuri Astrakhan <YuriAstrakhan@gmail.com>"
ENV UTF8PROC_TAG=v2.2.0 \
MAPNIK_GERMAN_L10N_TAG=v2.5.5
RUN apt-get -qq -y update \
##
## Install build dependencies
&& apt-get -qq -y --no-install-recommends install \
build-essential \
ca-certificates \
# Required by Nominatim to download data files
curl \
git \
pandoc \
# $PG_MAJOR is declared in postgres docker
postgresql-server-dev-$PG_MAJOR \
libkakasi2-dev \
libgdal-dev \
##
## UTF8Proc
&& cd /opt/ \
&& git clone https://github.com/JuliaLang/utf8proc.git \
&& cd utf8proc \
&& git checkout -q $UTF8PROC_TAG \
&& make \
&& make install \
&& ldconfig \
&& rm -rf /opt/utf8proc \
##
## osml10n extension (originally Mapnik German)
&& cd /opt/ \
&& git clone https://github.com/giggls/mapnik-german-l10n.git \
&& cd mapnik-german-l10n \
&& git checkout -q $MAPNIK_GERMAN_L10N_TAG \
&& make \
&& make install \
&& rm -rf /opt/mapnik-german-l10n \
##
## Cleanup
&& apt-get -qq -y --auto-remove purge \
autoconf \
automake \
autotools-dev \
build-essential \
ca-certificates \
bison \
cmake \
curl \
dblatex \
docbook-mathml \
docbook-xsl \
git \
libcunit1-dev \
libtool \
make \
g++ \
gcc \
pandoc \
unzip \
xsltproc \
libpq-dev \
postgresql-server-dev-$PG_MAJOR \
libxml2-dev \
libjson-c-dev \
libgdal-dev \
&& rm -rf /usr/local/lib/*.a \
&& rm -rf /var/lib/apt/lists/*
## The script should run after the parent's postgis.sh runs
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgisZ.sh