https://github.com/GeoscienceAustralia/PyRate
Tip revision: bc2ff7e080ac3dc8ec5532ee980f17f2a9311505 authored by Matt Garthwaite on 29 July 2019, 04:05:46 UTC
Merge pull request #207 from GeoscienceAustralia/release-0.3.0
Merge pull request #207 from GeoscienceAustralia/release-0.3.0
Tip revision: bc2ff7e
Dockerfile
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && apt-get -y install git gdal-bin=2.2.3* libgdal-dev libatlas-base-dev openmpi-bin libopenmpi-dev libnetcdf13
ENV C_INCLUDE_PATH=/usr/include/gdal
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt install -y python3 python3-dev python3-pip
RUN pip3 install --upgrade setuptools
ADD . / PyRate/
RUN cd PyRate && sed -i 's/GDAL//g' requirements.txt
RUN cd PyRate && pip3 install -r requirements.txt
RUN pip3 install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
RUN cd PyRate && pip3 install -r requirements-dev.txt
RUN cd PyRate && python3 setup.py install