-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
36 lines (27 loc) · 1.22 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
FROM debian:stretch
MAINTAINER David Stefan <[email protected]>
ENV OSMIUM_VERSION 2.13.1
ENV OSMIUM_TOOL_VERSION 1.7.1
RUN apt-get update
RUN apt-get update && apt-get install -y \
wget g++ cmake cmake-curses-gui make libexpat1-dev zlib1g-dev libbz2-dev libsparsehash-dev \
libboost-program-options-dev libboost-dev libgdal-dev libproj-dev doxygen graphviz pandoc
RUN mkdir /var/install
WORKDIR /var/install
RUN wget https://github.com/osmcode/libosmium/archive/v${OSMIUM_VERSION}.tar.gz && \
tar xzvf v${OSMIUM_VERSION}.tar.gz && \
rm v${OSMIUM_VERSION}.tar.gz && \
mv libosmium-${OSMIUM_VERSION} libosmium
RUN cd libosmium && \
mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DINSTALL_PROTOZERO=ON .. && \
make
RUN wget https://github.com/osmcode/osmium-tool/archive/v${OSMIUM_TOOL_VERSION}.tar.gz && \
tar xzvf v${OSMIUM_TOOL_VERSION}.tar.gz && \
rm v${OSMIUM_TOOL_VERSION}.tar.gz && \
mv osmium-tool-${OSMIUM_TOOL_VERSION} osmium-tool
RUN cd osmium-tool && \
mkdir build && cd build && \
cmake -DOSMIUM_INCLUDE_DIR=/var/install/libosmium/include/ .. && \
make
RUN mv /var/install/osmium-tool/build/src/osmium /usr/bin/osmium