-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile.develop.template
45 lines (42 loc) · 1.32 KB
/
Dockerfile.develop.template
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:%%PG_MAJOR%%-%%POSTGIS_VERSION%%
LABEL maintainer="pgRouting Project - https://pgrouting.org"
ENV PGROUTING_VERSION %%PGROUTING_VERSION%%
ENV PGROUTING_GIT_HASH %%PGROUTING_GIT_HASH%%
RUN apt update \
&& apt install -y \
libboost-atomic%%BOOST_VERSION%% \
libboost-chrono%%BOOST_VERSION%% \
libboost-graph%%BOOST_VERSION%% \
libboost-date-time%%BOOST_VERSION%% \
libboost-program-options%%BOOST_VERSION%% \
libboost-system%%BOOST_VERSION%% \
libboost-thread%%BOOST_VERSION%% \
&& 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