From 2394ba07e64989f1c6176ae3527571f1bfc74499 Mon Sep 17 00:00:00 2001 From: Andrea Gilardi Date: Thu, 31 Oct 2024 18:09:29 +0100 Subject: [PATCH] another Dockerfile test --- .devcontainer/.devcontainer.json | 2 +- .devcontainer/Dockerfile | 27 +++++++-------------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/.devcontainer/.devcontainer.json b/.devcontainer/.devcontainer.json index a1447f1..5a3f17d 100644 --- a/.devcontainer/.devcontainer.json +++ b/.devcontainer/.devcontainer.json @@ -1,3 +1,3 @@ { - "build": { "dockerfile": "Dockerfile" } + "build": { "dockerfile": "Dockerfile"} } diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 04e1e8c..7e5a495 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,8 +1,14 @@ -FROM ghcr.io/osgeo/gdal:ubuntu-full-latest +FROM ubuntu:22.04 +# minimal docker file to get sp and sf running on ubunty 16.04 image, +# using gdal/geos/proj from ppa:ubuntugis/ubuntugis-unstable + +# MAINTAINER "edzerpebesma" edzer.pebesma@uni-muenster.de RUN apt-get update && apt-get install -y software-properties-common dirmngr RUN add-apt-repository ppa:ubuntugis/ubuntugis-unstable +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 + # add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed RUN add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" @@ -32,22 +38,3 @@ RUN export DEBIAN_FRONTEND=noninteractive; apt-get -y update \ vim \ tk-dev \ wget - -RUN apt-get update && apt-get install -y --fix-missing \ - libjq-dev \ - libprotobuf-dev \ - libxml2-dev \ - libprotobuf-dev \ - protobuf-compiler \ - unixodbc-dev \ - libssh2-1-dev \ - libgit2-dev \ - libnetcdf-dev \ - locales \ - libssl-dev \ - libtiff-dev \ - cmake \ - libtiff5-dev \ - libopenjp2-7-dev - -RUN locale-gen en_US.UTF-8