-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 957 Bytes
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 957 Bytes
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
FROM kartoza/postgis:9.6-2.4
MAINTAINER Max Bohnet <github.com/MaxBo>
ENV PG_MAJOR 9.6
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget ca-certificates
RUN apt-get update && \
apt-get install -y --no-install-recommends \
postgresql-contrib-$PG_MAJOR \
postgresql-plpython-$PG_MAJOR \
build-essential \
python-setuptools \
python-pip \
python-psycopg2 \
python-dev \
postgresql-server-dev-all \
libssl-dev locales locales-all
RUN apt-get install zlib1g-dev acl
RUN pip install wheel
RUN pip install pgxnclient
RUN pgxn install --pg_config /usr/lib/postgresql/$PG_MAJOR/bin/pg_config kmeans
RUN pgxn install --pg_config /usr/lib/postgresql/$PG_MAJOR/bin/pg_config pg_repack
ADD start-postgresql.sh /
ADD initdb-pgxn.sh /
ADD initdb-pgrouting.sh /
ADD optimize-kernel.sh /
ADD setup-ssl-certificates.sh /
RUN chmod +x /*.sh
ENTRYPOINT /start-postgresql.sh