Skip to content

Commit 9631131

Browse files
authored
Update Dockerfile
1 parent 01d78ec commit 9631131

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

kernel-python/container/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ RUN conda install --yes --channel conda-forge \
99
cffi \
1010
future \
1111
pycryptodomex \
12-
leafmap \
13-
rioxarray \
1412
&& \
1513
conda clean --all && \
1614
fix-permissions $CONDA_DIR && \
@@ -29,10 +27,17 @@ RUN chown jovyan:users /usr/local/bin/bootstrap-kernel.sh && \
2927
chmod 0755 /usr/local/bin/bootstrap-kernel.sh && \
3028
chown --recursive jovyan:users /usr/local/bin/kernel-launchers
3129

30+
USER ${NB_UID}
31+
RUN mamba install --yes \
32+
'leafmap' && \
33+
mamba clean --all -f -y && \
34+
fix-permissions "${CONDA_DIR}" && \
35+
fix-permissions "/home/${NB_USER}"
36+
3237
USER jovyan
3338

3439
ENV KERNEL_LANGUAGE=python
3540

3641
HEALTHCHECK NONE
3742

38-
CMD /usr/local/bin/bootstrap-kernel.sh
43+
CMD /usr/local/bin/bootstrap-kernel.sh

0 commit comments

Comments
 (0)