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