-
Notifications
You must be signed in to change notification settings - Fork 4
/
osm_loader.Dockerfile
39 lines (28 loc) · 1.03 KB
/
osm_loader.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
FROM alpine:3.11.3
LABEL maintainer Kálmán Szalai (KAMI) <[email protected]>
ENV PATH /usr/local/bin:$PATH
ENV LANG C.UTF-8
RUN rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
RUN apk --no-cache update \
apk add apk-tools && \
apk add bash g++ make cmake openssl expat-dev bzip2-dev zlib-dev boost-dev postgresql-dev lua-dev proj-dev wget
# install osm2pgsql
ENV OSM2PGSQL_VERSION 1.2.1
RUN wget --no-check-certificate https://github.com/openstreetmap/osm2pgsql/archive/${OSM2PGSQL_VERSION}.tar.gz && \
tar xzvf ${OSM2PGSQL_VERSION}.tar.gz && \
cd /osm2pgsql-${OSM2PGSQL_VERSION} && \
mkdir build && \
cd build && \
cmake .. && \
make && make install
# purge packages that are no longer needed
RUN apk del expat-dev bzip2-dev zlib-dev boost-dev g++ make openssl
RUN rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
RUN mkdir -p /opm/tools/ /opm/osm2pgsql
COPY ./tools /opm/tools/
COPY ./osm2pgsql /opm/osm2pgsql/
RUN ls -la /opm/tools/
WORKDIR /opm/tools
ENTRYPOINT ["/opm/tools/docker_downloadimport_osm_files.sh"]