Skip to content

Commit 5b157a6

Browse files
committed
use root fot apt
1 parent c8f1ee6 commit 5b157a6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

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

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

1012
# Install QUARTO
1113
ARG QUARTO_VERSION="0.9.508"
@@ -46,3 +48,5 @@ RUN code-server --install-extension ms-azuretools.vscode-docker
4648
RUN code-server --install-extension njpwerner.autodocstring
4749
RUN code-server --install-extension redhat.vscode-yaml
4850
RUN code-server --install-extension quarto.quarto
51+
52+
USER coder

0 commit comments

Comments
 (0)