Skip to content

Commit

Permalink
fix pyproj
Browse files Browse the repository at this point in the history
  • Loading branch information
mhwasil committed Aug 1, 2024
1 parent 81d5097 commit 740b0d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 7 additions & 6 deletions geo-notebook/cuda12-pytorch-2.2.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ FROM $BASE_IMAGE

LABEL maintainer="Mohammad Wasil <mohammad.wasil@h-brs.de>"

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
Expand All @@ -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 && \
Expand Down
3 changes: 3 additions & 0 deletions geo-notebook/cuda12-pytorch-2.2.2/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ rasterio
torchgeo[all]
planetary_computer
pystac
# pyproj needs to be reinstalled
# issue: https://github.com/pyproj4/pyproj/discussions/1262
pyproj

0 comments on commit 740b0d6

Please sign in to comment.