From 8e88c52266209115d630035b6cd65242a88b03e1 Mon Sep 17 00:00:00 2001 From: Johannes Edmeier Date: Thu, 5 Dec 2024 17:05:23 +0100 Subject: [PATCH] refa: reference user by UID instead of name this enables runAsNonRoot for Kubernetes without specifying a user --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 587604f..13bedc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,7 @@ RUN apt-get -qq update \ && rm -rf /var/lib/apt/lists/* \ && mkdir -p /run/systemd/system /sidecar -USER $USERNAME +USER $USER_UID WORKDIR /