Fixed dockerfile, now uses testing packages of debian to install GDAL 2.1

pull/66/head
Piero Toffanin 2016-12-12 17:35:03 -05:00
rodzic 3bdb3acc08
commit 9f674a1b41
1 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -17,10 +17,18 @@ ADD . /webodm/
RUN git submodule init
RUN git submodule update
# Install Node.js + other packages
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:ubuntugis/ubuntugis-unstable && apt-get update
# Install Node.js
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs binutils libproj-dev gdal-bin
RUN apt-get install -y nodejs
# Configure use of testing branch of Debian
RUN printf "Package: *\nPin: release a=stable\nPin-Priority: 900\n" > /etc/apt/preferences.d/stable.pref
RUN printf "Package: *\nPin: release a=testing\nPin-Priority: 750\n" > /etc/apt/preferences.d/testing.pref
RUN printf "deb http://mirror.steadfast.net/debian/ stable main contrib non-free\ndeb-src http://mirror.steadfast.net/debian/ stable main contrib non-free" > /etc/apt/sources.list.d/stable.list
RUN printf "deb http://mirror.steadfast.net/debian/ testing main contrib non-free\ndeb-src http://mirror.steadfast.net/debian/ testing main contrib non-free" > /etc/apt/sources.list.d/testing.list
# Install GDAL
RUN apt-get update && apt-get install -t testing -y binutils libproj-dev gdal-bin
WORKDIR /webodm/nodeodm/external/node-OpenDroneMap
RUN npm install