From eebad9000951b456171c1eed43baf660826d8039 Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Fri, 27 Sep 2024 10:02:13 +0200 Subject: [PATCH] Drop legacy go variable --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 626b7444d..f14feb7cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,11 @@ # STEP 1: build executable edge-api binaries ############################################ FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS edge-builder +USER root WORKDIR $GOPATH/src/github.com/RedHatInsights/edge-api/ COPY . . -# Use go mod -ENV GO111MODULE=on -# Fetch dependencies. -# Using go get requires root. -USER root + +# Download dependencies RUN go get -d -v # Build the binary.