From c6409b36c75b69833cc22a68527ec2c905206be5 Mon Sep 17 00:00:00 2001 From: ston1th Date: Sat, 1 Feb 2020 17:46:13 +0100 Subject: [PATCH] fixed uid --- Dockerfile | 2 +- config/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1e5422..0446b39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM golang:alpine as builder -RUN adduser -D -g '' appuser +RUN adduser -D -g 65532 -u 65532 appuser RUN mkdir /build ADD . /build/ WORKDIR /build diff --git a/config/deployment.yaml b/config/deployment.yaml index 3e216ee..bef7a9d 100644 --- a/config/deployment.yaml +++ b/config/deployment.yaml @@ -22,8 +22,8 @@ spec: image: git.giftfish.de/ston1th/status-reporter imagePullPolicy: Always securityContext: - runAsUser: 1000 - runAsGroup: 1000 + runAsUser: 65532 + runAsGroup: 65532 capabilities: drop: ["ALL"] resources: