From 74cbc60d47fc205256754338b69ebac360ca303a Mon Sep 17 00:00:00 2001 From: Brandon Schneider Date: Mon, 11 Nov 2024 14:17:16 -0600 Subject: [PATCH] Try running as root --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31e24a67..664f3577 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM registry.access.redhat.com/ubi8/go-toolset as builder +USER 0 WORKDIR /go/src/app @@ -9,8 +10,6 @@ COPY main.go main.go RUN go mod download -USER 0 - RUN go build -v -o app main.go FROM registry.access.redhat.com/ubi8-minimal