Skip to content

Commit

Permalink
Use GO_RUNTIME instead of UBIx_MINIMAL
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Aug 29, 2024
1 parent bb729a7 commit e369f70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/generate/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT! Generated Dockerfile for {{.main}}.
ARG GO_BUILDER={{.builder}}
ARG UBI8_MINIMAL=registry.access.redhat.com/ubi8/ubi-minimal
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
ARG VERSION={{.version}}

FROM $GO_BUILDER as builder
Expand All @@ -12,9 +12,9 @@ ENV GOEXPERIMENT=strictfipsruntime

RUN go build -tags strictfipsruntime -o /usr/bin/main ./{{.main}}

FROM $UBI8_MINIMAL
FROM $GO_RUNTIME

# Install the missing zoneinfo to ubi-minimal
# Install zoneinfo.
RUN microdnf install tzdata

USER 65532
Expand Down

0 comments on commit e369f70

Please sign in to comment.