Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
This PR fixes two dependency issues with the current Dockerfile (based on Ubuntu 22.04.3 LTS)

- adding `libgl1` to fix `ImportError: libGL.so.1: cannot open shared object file`
- adding `backports.tarfile` to fix  `Exception: cannot import name 'tarfile' from 'backports'`
  • Loading branch information
neteler committed Oct 29, 2024
1 parent 777639b commit 8b3b798
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ FROM jupyter/base-notebook:latest
LABEL maintainer="Qiusheng Wu"
LABEL repo="https://github.com/opengeos/segment-geospatial"

USER root
RUN apt-get update -y && apt-get install libgl1 -y

USER 1000
RUN mamba install -c conda-forge leafmap localtileserver segment-geospatial -y && \
pip install -U segment-geospatial jupyter-server-proxy && \
pip install -U segment-geospatial jupyter-server-proxy backports.tarfile && \
jupyter server extension enable --sys-prefix jupyter_server_proxy && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
Expand Down

0 comments on commit 8b3b798

Please sign in to comment.