-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimposm.Dockerfile
More file actions
40 lines (29 loc) · 763 Bytes
/
imposm.Dockerfile
File metadata and controls
40 lines (29 loc) · 763 Bytes
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
FROM python:3.6
RUN apt-get update && \
apt-get install -y \
build-essential \
python-dev \
protobuf-compiler \
libprotobuf-dev \
libtokyocabinet-dev \
python-psycopg2 \
libgeos-c1 \
libgdal1-dev \
libspatialindex-dev \
inotify-tools \
bzip2
#python2 dependencies
RUN apt-get install -y python-pip && pip2 install rtree imposm
#python3 entrypoint dependency
RUN pip install psycopg2
RUN useradd osm -u 1000
RUN mkdir -p /imports/active \
&& mkdir /imports/torrents \
&& mkdir /imports/downloading \
&& mkdir /imports/archive
COPY ./bin /var/lib/osm2pgsqlauto
RUN chown -R osm:osm /var/lib/osm2pgsqlauto
RUN chown -R osm:osm /imports
WORKDIR /var/lib/osm2pgsqlauto
USER osm
ENTRYPOINT /var/lib/osm2pgsqlauto/imposm_entrypoint