From 10ea4ca3a9651a6ac0ea4dc986f2d35d6b8ca4b3 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Tue, 8 Oct 2024 14:44:46 +0200 Subject: [PATCH] Fix permissions to download ISO Signed-off-by: Ondra Machacek --- Containerfile.api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile.api b/Containerfile.api index f286f47..795fd4c 100644 --- a/Containerfile.api +++ b/Containerfile.api @@ -2,7 +2,6 @@ FROM registry.access.redhat.com/ubi9/go-toolset as builder WORKDIR /app -RUN curl -Lo /app/rhcos-live.x86_64.iso https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/rhcos-live.x86_64.iso COPY go.mod go.sum ./ RUN go mod download @@ -10,6 +9,7 @@ RUN go mod download COPY . . USER 0 +RUN curl -Lo /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