From f0944d62214ca35badc3ed345df50a2ccfaf62ff Mon Sep 17 00:00:00 2001 From: seallard Date: Mon, 23 Oct 2023 12:59:21 +0200 Subject: [PATCH] Add non root user --- Dockerfile.cli | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile.cli b/Dockerfile.cli index 0cf95188fa..a963ee3319 100644 --- a/Dockerfile.cli +++ b/Dockerfile.cli @@ -1,5 +1,10 @@ FROM docker.io/library/python:3.11-slim-bullseye +RUN addgroup -S nonroot \ + && adduser -S nonroot -G nonroot + +USER nonroot + RUN apt-get update \ && apt-get install -y --no-install-recommends git \ && rm -rf /var/lib/apt/lists/* \