forked from trailbehind/DeepOSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.base
43 lines (33 loc) · 1.32 KB
/
Dockerfile.base
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
41
42
43
FROM tensorflow/tensorflow:0.8.0
WORKDIR /DeepOSM
# install required packages
RUN apt-get update && \
apt-get install -y \
libjpeg-dev \
software-properties-common \
git cmake build-essential wget \
libboost-all-dev libbz2-dev
# install python-gdal
RUN add-apt-repository ppa:ubuntugis/ppa && \
apt-get update && \
apt-get install -y python-gdal
# install libosmium and pyosmium bindings
RUN git clone https://github.com/osmcode/libosmium.git /libosmium && \
cd /libosmium && mkdir build && cd build && cmake .. && make && \
git clone https://github.com/osmcode/pyosmium.git /pyosmium && \
cd /pyosmium && pwd && python setup.py install
# install other python packages using pip
ADD requirements.txt .
RUN pip install -r requirements.txt
# install s3cmd, used to ls the RequesterPays bucket
RUN wget http://netix.dl.sourceforge.net/project/s3tools/s3cmd/1.6.0/s3cmd-1.6.0.tar.gz && tar xvfz s3cmd-1.6.0.tar.gz && cd s3cmd-1.6.0 && python setup.py install
# copy s3cmd config defaults to docker, which will later be
# updated with AWS credentials by Python inside docker
COPY s3config-default /root/.s3cfg
# add code
ADD . /DeepOSM
# set up some paths
ENV PYTHONPATH /DeepOSM:/DeepOSM/src:$PYTHONPATH
ENV GEO_DATA_DIR /DeepOSM/data
# default command is to just open a bash shell
CMD /bin/bash