Skip to content

Commit

Permalink
Fix docker error (#374)
Browse files Browse the repository at this point in the history
* Fix docker error

* Remove backports.tarfile

* Update sqlite

* Fix sqlite issue

* Use pip

* Fix sqlite

* Use mamba

* Add sqlite3
  • Loading branch information
giswqs authored Nov 26, 2024
1 parent 7f741c8 commit 956f644
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ LABEL maintainer="Qiusheng Wu"
LABEL repo="https://github.com/opengeos/segment-geospatial"

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

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

0 comments on commit 956f644

Please sign in to comment.