11FROM codercom/code-server:4.4.0
22ARG PYTHON_VERSION=3.10
3- ARG QUARTO_VERSION="0.9.393"
4-
5- USER root
63
74# Install common softwares
85RUN apt-get -y update && \
@@ -11,6 +8,7 @@ RUN apt-get -y update && \
118 rm -rf /var/lib/apt/lists/*
129
1310# Install QUARTO
11+ ARG QUARTO_VERSION="0.9.508"
1412RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb"
1513RUN apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
1614
@@ -30,14 +28,16 @@ RUN conda create -n basesspcloud python=$PYTHON_VERSION
3028COPY environment.yml .
3129RUN mamba env update -n basesspcloud -f environment.yml
3230
33- # Make basesspcloud env activated by default in shells
31+ # Use basesspcloud env by default
32+ RUN '. "/home/coder/local/bin/conda/etc/profile.d/conda.sh"' >> /home/coder/.bashrc
33+ RUN 'conda activate basesspcloud' >> /home/coder/.bashrc
3434ENV PATH="/home/coder/local/bin/conda/envs/basesspcloud/bin:${PATH}"
35- RUN echo "export PATH=$PATH" >> /home/coder/.bashrc # Temporary fix while PATH gets overwritten by code-server
35+ RUN echo "export PATH=$PATH" >> /home/coder/.bashrc
3636
3737# Additional VSCode settings
3838# Put in remote settings because : https://github.com/coder/code-server/issues/4609
39- RUN mkdir -p /home/coder/.local/share/code-server/Machine /
40- COPY settings.json /home/coder/.local/share/code-server/Machine /settings.json
39+ RUN mkdir -p /home/coder/.local/share/code-server/User /
40+ COPY settings.json /home/coder/.local/share/code-server/User /settings.json
4141
4242# INSTALL VSTUDIO EXTENSIONS
4343RUN code-server --install-extension ms-python.python
0 commit comments