forked from door2door-io/osrm-express-server-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.osmium-tool
37 lines (29 loc) · 967 Bytes
/
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
FROM debian:stretch
# Credit to https://github.com/stefda/docker-osmium-tool/ for his version of this file.
ENV OSMIUM_TOOL_VERSION 1.10.0
RUN echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list.d/backports.list
RUN apt-get update
RUN apt-get install -y \
libprotozero-dev \
libboost-program-options-dev \
libbz2-dev \
zlib1g-dev \
libexpat1-dev \
cmake \
pandoc \
wget \
g++
RUN apt-get -t stretch-backports install -y libosmium2-dev
RUN mkdir /var/install
WORKDIR /var/install
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 -DCMAKE_BUILD_TYPE=Release .. && \
make && \
make install
ENTRYPOINT ["osmium"]
CMD ["--help"]