From 7296234d81c5cbc16919d3a3d43835349737ba36 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 23 Jun 2021 09:37:09 +0200 Subject: [PATCH] increase user uid to 10000 --- Dockerfile | 4 ++-- kubernetes/full.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf270c2..b233b8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,9 @@ RUN pip install -r /tmp/requirements.txt --no-cache-dir # Run as non-root ENV USER scheduler -ENV UID 1000 +ENV UID 10000 ENV GROUP scheduler -ENV GID 1000 +ENV GID 10000 ENV HOME /home/$USER RUN addgroup -g $GID -S $GROUP && adduser -u $UID -S $USER -G $GROUP diff --git a/kubernetes/full.yaml b/kubernetes/full.yaml index 1164f2f..daf49c6 100644 --- a/kubernetes/full.yaml +++ b/kubernetes/full.yaml @@ -71,4 +71,4 @@ spec: securityContext: readOnlyRootFilesystem: true runAsNonRoot: true - runAsUser: 1000 \ No newline at end of file + runAsUser: 10000 \ No newline at end of file