forked from pgRouting/docker-pgrouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (42 loc) · 1.22 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
FROM postgis/postgis:14-3.3
LABEL maintainer="pgRouting Project - https://pgrouting.org"
ENV PGROUTING_VERSION develop
ENV PGROUTING_GIT_HASH 1988511aef930cf65a36b0bcb0e4223bee4c2420
RUN apt update \
&& apt install -y \
libboost-atomic1.74.0 \
libboost-chrono1.74.0 \
libboost-graph1.74.0 \
libboost-date-time1.74.0 \
libboost-program-options1.74.0 \
libboost-system1.74.0 \
libboost-thread1.74.0 \
&& apt install -y \
build-essential \
cmake \
libboost-graph-dev \
libpq-dev \
postgresql-server-dev-${PG_MAJOR} \
git \
&& mkdir -p /usr/src/pgrouting \
&& cd /usr/src/pgrouting \
&& git init \
&& git remote add origin https://github.com/pgRouting/pgrouting.git \
&& git fetch --depth 1 origin :${PGROUTING_GIT_HASH} \
&& git reset --hard FETCH_HEAD \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& make install \
&& cd / \
&& rm -rf /usr/src/pgrouting \
&& apt purge -y --autoremove \
build-essential \
cmake \
libpq-dev \
libboost-graph-dev \
postgresql-server-dev-${PG_MAJOR} \
git \
&& rm -rf /var/lib/apt/lists/*
RUN rm /docker-entrypoint-initdb.d/10_postgis.sh