From 036dfa2f68d992fba00be94bf55e4fa8ccd912aa Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Wed, 2 Oct 2024 16:49:35 +0200 Subject: [PATCH] Fix Containerfile.api download of rhcos image Signed-off-by: Ondra Machacek --- Containerfile.api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile.api b/Containerfile.api index c19bc5c..42babbd 100644 --- a/Containerfile.api +++ b/Containerfile.api @@ -3,12 +3,12 @@ FROM registry.access.redhat.com/ubi9/go-toolset as builder WORKDIR /app COPY go.mod go.sum ./ -RUN curl -o /app/rhcos-live.x86_64.iso https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/rhcos-live.x86_64.iso RUN go mod download COPY . . USER 0 +RUN curl -o /app/rhcos-live.x86_64.iso https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/rhcos-live.x86_64.iso RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -o /planner-api cmd/planner-api/main.go FROM registry.access.redhat.com/ubi9/ubi-micro