forked from jeancochrane/mellow-bike-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 1 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
FROM python:3.8
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential gcc make cmake gdal-bin postgresql-server-dev-13 postgresql-13-postgis-3 \
expat libexpat1-dev libboost-dev libboost-graph-dev libboost-program-options-dev libpqxx-dev \
osmctools wget ca-certificates
RUN wget -O pgrouting-3.1.0.tar.gz https://github.com/pgRouting/pgrouting/archive/v3.1.0.tar.gz && \
tar xvfz pgrouting-3.1.0.tar.gz && \
cd pgrouting-3.1.0 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
cd / && rm -Rf pgrouting-3.1.0*
RUN wget -O osm2pgrouting-2.3.6.tar.gz https://github.com/pgRouting/osm2pgrouting/archive/v2.3.6.tar.gz && \
tar xvfz osm2pgrouting-2.3.6.tar.gz && \
cd osm2pgrouting-2.3.6 && \
cmake -H. -Bbuild && \
cd build && \
make && \
make install && \
cd / && rm -Rf osm2pgrouting-2.3.6*
COPY ./app/requirements.txt /app/requirements.txt
RUN pip3 install --no-cache-dir -r /app/requirements.txt