Skip to content

Commit

Permalink
FIPS compliance (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak authored Feb 12, 2025
1 parent 071dfe9 commit 237ef17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.downstream
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ COPY pkg/ pkg/
COPY config/ config/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build -ldflags "-X 'main.buildVersion=$BUILD_VERSION' -X 'main.buildDate=`date +%Y-%m-%d\ %H:%M`'" -mod vendor -a -o manager main.go
ENV GOEXPERIMENT strictfipsruntime
RUN GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build -tags strictfipsruntime -ldflags "-X 'main.buildVersion=$BUILD_VERSION' -X 'main.buildDate=`date +%Y-%m-%d\ %H:%M`'" -mod vendor -a -o manager main.go

# Create final image from minimal + built binary
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.5-1738816775
Expand Down

0 comments on commit 237ef17

Please sign in to comment.