docker-osm/docker-imposm3/Dockerfile

23 wiersze
654 B
Docker
Czysty Zwykły widok Historia

2015-07-30 09:38:13 +00:00
FROM golang:1.4
MAINTAINER Etienne Trimaille <etienne@kartoza.com>
RUN apt-get update && apt-get install -y python-pip \
libprotobuf-dev libleveldb-dev libgeos-dev \
libpq-dev python-dev \
--no-install-recommends
RUN ln -s /usr/lib/libgeos_c.so /usr/lib/libgeos.so
WORKDIR $GOPATH
RUN go get github.com/tools/godep
RUN git clone https://github.com/omniscale/imposm3 src/github.com/omniscale/imposm3
RUN cd src/github.com/omniscale/imposm3 && godep go install ./...
ADD requirements.txt /home/requirements.txt
RUN pip install -r /home/requirements.txt
ADD importer.py /home/
WORKDIR /home
CMD ["python", "-u", "/home/importer.py"]