This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Dockerfile
69 lines (50 loc) · 1.59 KB
/
Dockerfile
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04
LABEL maintainer dlindenbaum
## Install General Requirements
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
cmake \
git \
wget \
vim \
python-dev \
python-pip \
python-setuptools
RUN pip install --upgrade pip
## Install Basics for Python
RUN apt-get update && apt-get install -y --no-install-recommends \
python-numpy \
python-scipy
## Install Essentials for Pillow
RUN apt-get update && apt-get install -y --no-install-recommends \
libjpeg-dev \
zlib1g \
libtiff5-dev \
libfreetype6-dev \
libwebp-dev \
libopenjpeg-dev
RUN pip install Pillow
## Install GDAL Requirments
RUN apt-get update && apt-get install -y --no-install-recommends \
gdal-bin \
python-gdal
## Instal OpenCV Requirements
RUN apt-get update && apt-get install -y --no-install-recommends \
libopencv-dev \
python-opencv
## Install RTRee
RUN apt-get update && apt-get install -y --no-install-recommends \
libspatialindex-dev
RUN pip install rtree
## Install Python requirements
RUN pip install pandas geopandas
ENV GIT_BASE=/opt/
WORKDIR $GIT_BASE
# Download spaceNetUtilities
# FIXME: use ARG instead of ENV once DockerHub supports this
RUN git clone --depth 1 -b spacenetV3 https://github.com/SpaceNetChallenge/utilities.git
RUN pip install -e /opt/utilities/
#ENV PYUTILS_ROOT $GIT_BASE/utilities/python
#ENV PYTHONPATH $PYUTILS_ROOT:$PYTHONPATH
WORKDIR /workspace