diff --git a/Dockerfile b/Dockerfile index b21c2d14..a7b787a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,12 @@ FROM registry.access.redhat.com/ubi8/go-toolset as builder WORKDIR /go/src/app COPY go.mod go.sum . - -RUN go mod download - COPY internal/ internal/ COPY cmd/ cmd/ COPY main.go main.go +RUN go mod download + USER 0 RUN go build -v -o app main.go