diff --git a/Dockerfile b/Dockerfile index 1146ecc..cdf4874 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,14 @@ -FROM ubuntu:18.10 +FROM ubuntu:22.04 LABEL Maintainer="James Hiebert " -# WARNING: This should be removed with the introduction of 20.04 -RUN sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/g;s/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list +ARG DEBIAN_FRONTEND=noninteractive -RUN apt-get update && \ - apt-get -yq install \ +RUN apt-get update && apt-get install -yq \ libhdf5-dev \ libnetcdf-dev \ - libgdal-dev \ libyaml-dev \ - python \ - python-dev \ - python-pip \ - python-virtualenv \ - cython \ + libgdal-dev \ python3 \ python3-dev \ python3-pip \ @@ -25,10 +18,8 @@ RUN apt-get update && \ ENV CPLUS_INCLUDE_PATH=/usr/include/gdal ENV C_INCLUDE_PATH=/usr/include/gdal -RUN pip install -U pip && python3 -m pip install -U pip - -RUN pip install numpy && pip3 install numpy +RUN python3 -m pip install -U pip -RUN pip install gdal==2.3.1 h5py netCDF4 psycopg2 PyYAML pillow +RUN pip3 install numpy -RUN pip3 install gdal==2.3.1 h5py netCDF4 psycopg2 PyYAML pillow +RUN pip3 install gdal==3.4.1 h5py netCDF4 psycopg2 PyYAML pillow \ No newline at end of file