-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
42 lines (37 loc) · 1022 Bytes
/
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
# Base image: Ubuntu 14.04 Trusty Tahyr
FROM ubuntu:trusty
ENV ROOTDIR /usr/local/
ENV GDAL_VERSION 2.1.1
# Load assets
WORKDIR $ROOTDIR/
ADD http://download.osgeo.org/gdal/${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar.gz $ROOTDIR/src/
# Install basic dependencies
RUN apt-get update -y && apt-get install -y \
software-properties-common \
python-software-properties \
build-essential \
python-dev \
python-numpy \
libspatialite-dev \
sqlite3 \
libpq-dev \
libcurl4-gnutls-dev \
libproj-dev \
libxml2-dev \
libgeos-dev \
libnetcdf-dev \
libpoppler-dev \
libspatialite-dev \
libhdf4-alt-dev \
libhdf5-serial-dev
# Compile and install GDAL
RUN cd src \
&& tar -xvf gdal-${GDAL_VERSION}.tar.gz \
&& cd gdal-${GDAL_VERSION} \
&& ./configure --with-python --with-hdf5 --with-geos=yes \
&& make \
&& make install \
&& ldconfig \
&& apt-get update -y \
&& apt-get remove -y --purge build-essential \
&& rm -Rf $ROOTDIR/src/*