Skip to content

Commit 7e5d9f8

Browse files
authored
fix permissions for pip install to select right location
1 parent 06e8ac5 commit 7e5d9f8

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
@@ -14,6 +14,9 @@ ARG QUARTO_VERSION="0.9.508"
1414
RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb"
1515
RUN apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
1616

17+
# Switch back to non-root user
18+
USER coder
19+
1720
# INSTALL MINICONDA -------------------------------
1821
ARG CONDA_DIR=/home/coder/local/bin/conda
1922
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
@@ -36,9 +39,6 @@ RUN echo 'conda activate basesspcloud' >> /home/coder/.bashrc
3639
ENV PATH="/home/coder/local/bin/conda/envs/basesspcloud/bin:${PATH}"
3740
RUN echo "export PATH=$PATH" >> /home/coder/.bashrc
3841

39-
# Switch back to non-root user
40-
USER coder
41-
4242
# Additional VSCode settings
4343
RUN mkdir -p /home/coder/.local/share/code-server/User/
4444
COPY --chown=coder:coder settings/User.json /home/coder/.local/share/code-server/User/settings.json

0 commit comments

Comments
 (0)