forked from Rub21/osrm-local-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.osmium-tool
46 lines (41 loc) · 1.11 KB
/
Dockerfile.osmium-tool
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
FROM alpine:3.7
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
WORKDIR /usr/src/apps
RUN apk add --no-cache \
boost-dev \
bzip2-dev \
cmake \
expat-dev \
g++ \
gdal-dev \
geos-dev \
git \
make \
proj4-dev \
sparsehash \
zlib-dev && \
git clone https://github.com/mapbox/protozero.git && \
cd protozero && \
mkdir build && \
cd build && \
cmake .. && \
make && \
cd /usr/src/apps && \
git clone https://github.com/osmcode/libosmium.git && \
cd libosmium && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_EXAMPLES=OFF .. && \
make && \
cd /usr/src/apps && \
git clone https://github.com/osmcode/osmium-tool && \
cd osmium-tool && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=MinSizeRel .. && \
make && \
make install && \
cd /usr/src/apps && \
apk del git cmake make
ENTRYPOINT ["osmium"]
CMD ["--help"]