Skip to content

Commit 51e8a01

Browse files
authored
Fix imposm Dockerfile (#132)
1 parent f345249 commit 51e8a01

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

docker-imposm/Dockerfile

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
1-
FROM golang:1.10
1+
FROM golang:1.19
22
MAINTAINER Etienne Trimaille <[email protected]>
33

4-
RUN apt-get update
5-
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add -
6-
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
7-
RUN apt update && apt install -y python3-pip \
8-
libprotobuf-dev libleveldb-dev libgeos-dev \
9-
libpq-dev python3-dev postgresql-client-11 python-setuptools \
10-
gdal-bin \
11-
--no-install-recommends
4+
RUN apt-get update && \
5+
DEBIAN_FRONTEND=noninteractive apt-get install -qy \
6+
python3-pip gdal-bin libgeos-dev libleveldb-dev postgresql-client
127

13-
RUN ln -s /usr/lib/libgeos_c.so /usr/lib/libgeos.so
8+
RUN go install github.com/omniscale/imposm3/cmd/imposm@latest
149

15-
WORKDIR $GOPATH
16-
RUN go get github.com/tools/godep
17-
RUN git clone https://github.com/omniscale/imposm3 src/github.com/omniscale/imposm3
18-
RUN cd src/github.com/omniscale/imposm3 && make update_version && go install ./cmd/imposm/
19-
20-
ADD requirements.txt /home/requirements.txt
21-
RUN pip3 install -r /home/requirements.txt
10+
WORKDIR /home
11+
ADD requirements.txt .
12+
RUN pip3 install -r requirements.txt
2213

23-
ADD importer.py /home/
14+
ADD importer.py .
2415

25-
WORKDIR /home
26-
CMD ["python3", "-u", "/home/importer.py"]
16+
CMD ["python3", "-u", "importer.py"]

0 commit comments

Comments
 (0)