File tree Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.10
1
+ FROM golang:1.19
2
2
MAINTAINER Etienne Trimaille <
[email protected] >
3
3
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
12
7
13
- RUN ln -s /usr/lib/libgeos_c.so /usr/lib/libgeos.so
8
+ RUN go install github.com/omniscale/imposm3/cmd/imposm@latest
14
9
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
22
13
23
- ADD importer.py /home/
14
+ ADD importer.py .
24
15
25
- WORKDIR /home
26
- CMD ["python3" , "-u" , "/home/importer.py" ]
16
+ CMD ["python3" , "-u" , "importer.py" ]
You can’t perform that action at this time.
0 commit comments