File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- FROM --platform=$BUILDPLATFORM golang:1.19-alpine3.16 as builder
1+ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as builder
22
3- RUN apk add --update --no-cache ca-certificates tzdata git make bash && update-ca-certificates
3+ RUN microdnf install go-toolset make
44
55ADD . /opt
66WORKDIR /opt
77# Run this before `make token-refresher` to be friendy with Docker image layer cache.
8- RUN make vendor
8+ # RUN make vendor
99
1010ARG TARGETOS TARGETARCH
1111
1212RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make token-refresher
1313
14- FROM scratch as runner
14+ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
1515
16- COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1716COPY --from=builder /opt/token-refresher /bin/token-refresher
1817
1918ARG BUILD_DATE
You can’t perform that action at this time.
0 commit comments