Skip to content

Commit 0b501db

Browse files
committed
Set ubi-miminal docker image
1 parent 1ffa2f0 commit 0b501db

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
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

55
ADD . /opt
66
WORKDIR /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

1010
ARG TARGETOS TARGETARCH
1111

1212
RUN 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/
1716
COPY --from=builder /opt/token-refresher /bin/token-refresher
1817

1918
ARG BUILD_DATE

0 commit comments

Comments
 (0)