File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ COPY pkg/ pkg/
2121# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
2222# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
2323# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
24- RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
24+ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} GOFIPS140=v1.0.0 go build -a -o manager cmd/main.go
2525
2626# Use distroless as minimal base image to package the manager binary
2727# Refer to https://github.com/GoogleContainerTools/distroless for more details
@@ -30,4 +30,5 @@ WORKDIR /
3030COPY --from=builder /project_workspace/manager .
3131USER 65532:65532
3232
33+ ENV GODEBUG=fips140=only,tlsmlkem=0
3334ENTRYPOINT ["/manager" ]
You can’t perform that action at this time.
0 commit comments