forked from acroca/osrm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (41 loc) · 1014 Bytes
/
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 ubuntu:14.04
RUN \
DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
git \
curl \
cmake pkg-config \
libprotoc-dev \
libprotobuf8 \
protobuf-compiler \
libprotobuf-dev \
libosmpbf-dev \
libpng12-dev \
libtbb-dev \
libbz2-dev \
libstxxl-dev \
libstxxl-doc \
libstxxl1 \
libxml2-dev \
libzip-dev \
libboost-all-dev \
lua5.1 \
liblua5.1-0-dev \
libluabind-dev \
libluajit-5.1-dev \
wget
WORKDIR /src
RUN \
wget "https://github.com/Project-OSRM/osrm-backend/archive/v4.7.1.tar.gz" && \
tar zxvf v4.7.1.tar.gz && \
mkdir -p /build && \
cd /build && \
cmake /src/osrm-backend-4.7.1 && make && \
mv /src/osrm-backend-4.7.1/profiles/bicycle.lua profile.lua && \
mv /src/osrm-backend-4.7.1/profiles/lib/ lib && \
echo "disk=/tmp/stxxl,25000,syscall" > /build/.stxxl && \
rm -rf /src
WORKDIR /build
ADD run.sh run.sh
EXPOSE 5000