From e012ed30b5d2781d2559f44d26c70327b4796c35 Mon Sep 17 00:00:00 2001 From: Christian Witting Date: Tue, 6 Apr 2021 20:51:57 +0200 Subject: [PATCH] Use ubuntu 20.04 as base to ensure gdal version is >= 3.1 In ubuntu 18.04 the gdal version in ppa:ubuntugis/ubuntugis-unstable is only 3.0, but in 20.04 it is 3.2.1. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7513c4e..228d8b19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:20.04 MAINTAINER Piero Toffanin ENV PYTHONUNBUFFERED 1 @@ -18,8 +18,8 @@ RUN wget --no-check-certificate https://deb.nodesource.com/setup_12.x -O /tmp/no RUN apt-get -qq update && apt-get -qq install -y nodejs # Install Python3, GDAL, nginx, letsencrypt, psql -RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends python3 python3-pip python3-setuptools python3-wheel git g++ python3-dev libpq-dev binutils libproj-dev gdal-bin python3-gdal nginx certbot grass-core gettext-base cron postgresql-client-10 gettext -RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 && update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2 +RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends python3 python3-pip python3-setuptools python3-wheel git g++ python3-dev python2.7-dev libpq-dev binutils libproj-dev gdal-bin python3-gdal nginx certbot grass-core gettext-base cron postgresql-client-12 gettext +RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 && update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2 RUN ln -s /usr/bin/pip3 /usr/bin/pip && pip install -U pip # Install pip reqs