Skip to content

Commit c41fe47

Browse files
committed
w/o xdg
1 parent 4a4ff99 commit c41fe47

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
@@ -1,8 +1,8 @@
11
ARG BASE=quay.io/jupyter/minimal-notebook:ubuntu-24.04
22
FROM $BASE
33

4-
# Make code-server extensions etc persist to container, not hub
5-
ENV XDG_DATA_HOME=/opt/share
4+
# this env var is recognized by jupyter-vscode-proxy:
5+
ENV CODE_EXTENSIONSDIR=/opt/share/code-server
66
## Add rstudio's binaries to path for quarto
77
ENV PATH=$PATH:/usr/lib/rstudio-server/bin/quarto/bin
88

@@ -23,7 +23,7 @@ RUN curl -s https://raw.githubusercontent.com/rocker-org/ml/refs/heads/master/in
2323
USER ${NB_USER}
2424

2525
COPY vscode-extensions.txt /tmp/vscode-extensions.txt
26-
RUN xargs -n 1 code-server --install-extension < /tmp/vscode-extensions.txt
26+
RUN xargs -n 1 code-server --extensions-dir ${CODE_EXTENSIONSDIR} --install-extension < /tmp/vscode-extensions.txt
2727

2828
COPY environment.yml /tmp/environment.yml
2929
RUN conda update --all --solver=classic -n base -c conda-forge conda && \

0 commit comments

Comments
 (0)