-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
81 lines (78 loc) · 2.05 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
74
75
76
77
78
79
80
81
FROM debian:8
VOLUME /data/valhalla
RUN apt-get update && apt-get install -y --no-install-recommends git \
autoconf \
automake \
make \
libtool \
pkg-config \
g++ \
gcc \
locales \
protobuf-compiler \
libboost-all-dev \
libcurl4-openssl-dev \
libprotobuf-dev \
libgeos-dev \
libgeos++-dev \
liblua5.2-dev \
libspatialite-dev \
libsqlite3-dev \
spatialite-bin \
wget \
unzip \
lua5.2 \
python-all-dev \
vim-common \
jq \
gucharmap \
libprotobuf9 \
libgeos-3.4.2 \
liblua5.2 \
libsqlite3-0 \
libboost-all-dev \
libboost-date-time1.55.0 \
libboost-filesystem1.55.0 \
libboost-program-options1.55.0 \
libboost-regex1.55.0 \
libboost-system1.55.0 \
libboost-thread1.55.0 \
libboost-iostreams1.55.0 \
cmake \
libzmq-dev \
ca-certificates \
&& git clone --depth=1 --recursive https://github.com/valhalla/valhalla.git libvalhalla \
&& cd libvalhalla \
&& ./autogen.sh && ./configure --enable-services=no --enable-static && make -j4 install && make clean && ldconfig \
&& cd - && rm -rf libvalhalla \
&& git clone --depth=1 https://github.com/canaltp/asgard asgard && cd asgard \
&& sed -i 's,git\@github.com:\([^/]*\)/\(.*\).git,https://github.com/\1/\2,' .gitmodules && git submodule update --init \
&& mkdir build && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4 && cp asgard/asgard /usr/bin/asgard \
&& cd - && rm -rf asgard \
&& apt-get -y purge \
git \
autoconf \
automake \
make \
libtool \
pkg-config \
g++ \
gcc \
protobuf-compiler \
libboost-all-dev \
libprotobuf-dev \
libgeos-dev \
libgeos++-dev \
liblua5.2-dev \
wget \
unzip \
python-all-dev \
vim-common \
jq \
gucharmap \
cmake \
libboost-all-dev \
&& apt-get autoremove -y && apt-get clean
EXPOSE 6000
CMD ["/usr/bin/asgard"]