-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (25 loc) · 1.28 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
FROM stackbrew/ubuntu:saucy
MAINTAINER F4 <[email protected]>
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git cmake pkg-config libprotoc-dev libprotobuf7 \
protobuf-compiler libprotobuf-dev libosmpbf-dev libpng12-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
RUN mkdir -p /build && mkdir -p /data
RUN git clone git://github.com/DennisOSRM/Project-OSRM.git /src
WORKDIR /build
RUN cmake /src
RUN make
RUN ln -s /src/profiles/car.lua profile.lua
RUN ln -s /src/profiles/lib/
#ADD http://download.geofabrik.de/europe/france-latest.osm.pbf /data/map.osm.pbf
#using wget instead of add to allow docker cache to work.
#RUN wget -nv http://download.geofabrik.de/europe/france-latest.osm.pbf -O /data/map.osm.pbf
#RUN wget -nv http://download.geofabrik.de/europe/france/ile-de-france-latest.osm.pbf -O /data/map.osm.pbf
RUN wget -nv http://download.geofabrik.de/europe/france/corse-latest.osm.pbf -O /data/map.osm.pbf
RUN echo "disk=/tmp/stxxl,10000,mmap" > .stxxl
RUN ./osrm-extract /data/map.osm.pbf
RUN ./osrm-prepare map.osrm
EXPOSE 5000
#CMD ["http://download.geofabrik.de/europe/france-latest.osm.pbf"]
ENTRYPOINT ["/build/osrm-routed"]