Skip to content

Commit

Permalink
Set ubi-miminal docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-nguyen7 committed Aug 17, 2023
1 parent 1ffa2f0 commit 3b3a932
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM --platform=$BUILDPLATFORM golang:1.19-alpine3.16 as builder
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as builder

RUN apk add --update --no-cache ca-certificates tzdata git make bash && update-ca-certificates
RUN microdnf install go-toolset make

ADD . /opt
WORKDIR /opt
Expand All @@ -11,9 +11,8 @@ ARG TARGETOS TARGETARCH

RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make token-refresher

FROM scratch as runner
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /opt/token-refresher /bin/token-refresher

ARG BUILD_DATE
Expand Down

0 comments on commit 3b3a932

Please sign in to comment.