From a4ae1ff18de4f0243f1e2e8620cef123bfd674a6 Mon Sep 17 00:00:00 2001 From: Tru Huynh <tru@pasteur.fr> Date: Thu, 2 Mar 2023 21:59:52 +0100 Subject: [PATCH] run as root and not default mambauser(1000) --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 11526dc..52d7e20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ From mambaorg/micromamba:1-bullseye - -RUN id ; ls -ld /var/lib/apt/lists/partial +# uid=1000(mambauser) gid=1000(mambauser) groups=1000(mambauser) +#RUN id ; ls -ld /var/lib/apt/lists/partial +USER root # update the OS -RUN mkdir -p /var/lib/apt/lists/partial && apt-get update && \ +RUN apt-get update && \ apt-get -y install curl && \ DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \ DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \ -- GitLab