Skip to content

Commit 3b3a932

Browse files
committed
Set ubi-miminal docker image
1 parent 1ffa2f0 commit 3b3a932

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -11,9 +11,8 @@ 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)