From 740b0d68112a1f9a5d28ce66f264067df419d77e Mon Sep 17 00:00:00 2001 From: Mohammad Wasil Date: Thu, 1 Aug 2024 17:05:14 +0200 Subject: [PATCH] fix pyproj --- geo-notebook/cuda12-pytorch-2.2.2/Dockerfile | 13 +++++++------ geo-notebook/cuda12-pytorch-2.2.2/requirements.txt | 3 +++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/geo-notebook/cuda12-pytorch-2.2.2/Dockerfile b/geo-notebook/cuda12-pytorch-2.2.2/Dockerfile index b46f695..6547e17 100644 --- a/geo-notebook/cuda12-pytorch-2.2.2/Dockerfile +++ b/geo-notebook/cuda12-pytorch-2.2.2/Dockerfile @@ -4,12 +4,6 @@ FROM $BASE_IMAGE LABEL maintainer="Mohammad Wasil " -USER $NB_USER - -COPY requirements.txt /tmp/requirements.txt - -RUN pip install --no-cache-dir -r /tmp/requirements.txt - USER root # Install QGIS. It needs root @@ -18,7 +12,14 @@ COPY --chown=$NB_UID:$NB_GID qgis/qgis.desktop /usr/share/applications/ COPY --chown=$NB_UID:$NB_GID qgis/qgis.desktop /usr/local/xfce-userdirs/Desktop/ RUN chmod +x /usr/share/applications/qgis.desktop +USER $NB_USER + +COPY requirements.txt /tmp/requirements.txt + +RUN pip install --no-cache-dir -r /tmp/requirements.txt + # clean up +USER root RUN rm /tmp/requirements.txt && \ /opt/conda/bin/conda clean -afy && \ find /opt/conda/ -follow -type f -name '*.a' -delete && \ diff --git a/geo-notebook/cuda12-pytorch-2.2.2/requirements.txt b/geo-notebook/cuda12-pytorch-2.2.2/requirements.txt index c52ebb8..740ff45 100644 --- a/geo-notebook/cuda12-pytorch-2.2.2/requirements.txt +++ b/geo-notebook/cuda12-pytorch-2.2.2/requirements.txt @@ -10,3 +10,6 @@ rasterio torchgeo[all] planetary_computer pystac +# pyproj needs to be reinstalled +# issue: https://github.com/pyproj4/pyproj/discussions/1262 +pyproj