Skip to content

Commit 108f8c4

Browse files
committed
use sudo
1 parent e47757d commit 108f8c4

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
FROM codercom/code-server:4.4.0
22
ARG PYTHON_VERSION=3.10
33

4-
USER root
5-
64
# Install system libraries
75
RUN sudo apt-get -y update && \
8-
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | bash -s && \
9-
apt-get install -y --no-install-recommends cmake g++ && \
6+
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | sudo bash -s && \
7+
sudo apt-get install -y --no-install-recommends cmake g++ && \
108
sudo rm -rf /var/lib/apt/lists/*
119

1210
# Install QUARTO
1311
ARG QUARTO_VERSION="0.9.508"
1412
RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb"
15-
RUN apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
13+
RUN sudo apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
1614

1715
# INSTALL MINICONDA -------------------------------
1816
ARG CONDA_DIR=/home/coder/local/bin/conda
1917
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
20-
RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_DIR
18+
RUN sudo bash Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_DIR
2119
RUN rm -f Miniconda3-latest-Linux-x86_64.sh
2220

2321
# Install mamba (speed up packages install with conda)
@@ -37,7 +35,6 @@ ENV PATH="/home/coder/local/bin/conda/envs/basesspcloud/bin:${PATH}"
3735
RUN echo "export PATH=$PATH" >> /home/coder/.bashrc
3836

3937
# Additional VSCode settings
40-
# Put in remote settings because : https://github.com/coder/code-server/issues/4609
4138
RUN mkdir -p /home/coder/.local/share/code-server/User/
4239
COPY settings.json /home/coder/.local/share/code-server/User/settings.json
4340

@@ -48,5 +45,3 @@ RUN code-server --install-extension ms-azuretools.vscode-docker
4845
RUN code-server --install-extension njpwerner.autodocstring
4946
RUN code-server --install-extension redhat.vscode-yaml
5047
RUN code-server --install-extension quarto.quarto
51-
52-
USER coder

0 commit comments

Comments
 (0)