Skip to content

Commit 58a6b59

Browse files
committed
drop xdg set
1 parent 96e6636 commit 58a6b59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ARG BASE=quay.io/jupyter/minimal-notebook:ubuntu-24.04
55

66
FROM $BASE
77

8-
# Make code-server extensions etc persist to container, not hub
9-
ENV XDG_DATA_HOME=/opt/share
8+
# this env var is recognized by jupyter-vscode-proxy:
9+
ENV CODE_EXTENSIONSDIR=/opt/share/code-server
1010

1111
USER root
1212
# code-server (VSCode)
@@ -32,7 +32,7 @@ COPY install.r /tmp/install.r
3232
RUN Rscript /tmp/install.r
3333

3434
COPY vscode-extensions.txt /tmp/vscode-extensions.txt
35-
RUN xargs -n 1 code-server --install-extension < /tmp/vscode-extensions.txt
35+
RUN xargs -n 1 code-server --extensions-dir ${CODE_EXTENSIONSDIR} --install-extension < /tmp/vscode-extensions.txt
3636

3737
COPY environment.yml /tmp/environment.yml
3838
RUN mamba env update --file /tmp/environment.yml

0 commit comments

Comments
 (0)