forked from openfirmware/docker-osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (40 loc) · 926 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
46
# DOCKER-VERSION 1.5.0
# VERSION 0.2
FROM debian:wheezy
MAINTAINER James Badger <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
autoconf \
automake \
g++ \
git-core \
libboost-dev \
libboost-filesystem-dev \
libboost-system-dev \
libboost-thread-dev \
libbz2-dev \
libgeos++-dev \
libgeos-dev \
liblua5.2-dev \
libpq-dev \
libproj-dev \
libprotobuf-c0-dev \
libtool \
libxml2-dev \
lua5.2 \
make \
protobuf-c-compiler &&\
rm -rf /var/lib/apt/lists/*
ENV HOME /root
ENV OSM2PGSQL_VERSION 0.87.2
RUN mkdir src &&\
cd src &&\
git clone --depth 1 --branch $OSM2PGSQL_VERSION https://github.com/openstreetmap/osm2pgsql.git &&\
cd osm2pgsql &&\
./autogen.sh &&\
./configure &&\
make &&\
make install &&\
cd /root &&\
rm -rf src
ENTRYPOINT ["/bin/bash"]