Skip to content

Commit

Permalink
Fix Containerfile.api download of rhcos image
Browse files Browse the repository at this point in the history
Signed-off-by: Ondra Machacek <[email protected]>
  • Loading branch information
machacekondra committed Oct 2, 2024
1 parent a3692fb commit 036dfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Containerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 036dfa2

Please sign in to comment.