Skip to content

Commit f7a7137

Browse files
authored
use root user
1 parent 3f704a1 commit f7a7137

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ FROM codercom/code-server:4.3.0
22
ARG PYTHON_VERSION=3.10
33
ARG QUARTO_VERSION="0.9.287"
44

5+
USER root
6+
57
# Install common softwares
6-
RUN sudo apt-get -y update && \
7-
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | sudo bash -s && \
8-
sudo apt-get -y install cmake g++
8+
RUN apt-get -y update && \
9+
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | bash -s && \
10+
apt-get -y install cmake g++ && \
11+
rm -rf /var/lib/apt/lists/*
912

1013
# Install QUARTO
1114
RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb"
12-
RUN sudo apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
15+
RUN apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
1316

1417
# INSTALL MINICONDA -------------------------------
1518
ARG CONDA_DIR=/home/coder/local/bin/conda

0 commit comments

Comments
 (0)