From af3643ccf95144d70a217e81c1adefafe9c07282 Mon Sep 17 00:00:00 2001 From: seallard Date: Fri, 20 Oct 2023 17:10:37 +0200 Subject: [PATCH] Add non-root user --- Dockerfile.cli | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.cli b/Dockerfile.cli index 966e043e19..b56d762b97 100644 --- a/Dockerfile.cli +++ b/Dockerfile.cli @@ -1,5 +1,9 @@ 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 git && \ rm -rf /var/lib/apt/lists/*