File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22 as builder
1
+ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23 as builder
2
2
3
3
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy
4
4
ARG goproxy=https://proxy.golang.org
5
5
ENV GOPROXY=$goproxy
6
- ENV GOFLAGS="-mod=readonly"
6
+ ENV GOFLAGS="-mod=readonly -tags=strictfipsruntime "
7
7
8
8
WORKDIR /workspace
9
9
@@ -15,10 +15,13 @@ RUN go mod download
15
15
ARG package=.
16
16
ARG ARCH
17
17
ARG LDFLAGS
18
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -ldflags "${LDFLAGS} -extldflags '-static'" -o manager ${package}
18
+ RUN CGO_ENABLED=1 GOOS=linux GOARCH=${ARCH} GOEXPERIMENT=strictfipsruntime go build -ldflags "${LDFLAGS}" -o manager ${package}
19
19
20
20
# Copy the controller-manager into a thin image
21
- FROM registry.redhat.io/rhel9-4-els/rhel:9.4
21
+ FROM registry.redhat.io/rhel9-6-els/rhel:9.6
22
+
23
+ RUN dnf install -y openssl
24
+
22
25
WORKDIR /
23
26
COPY --from=builder /workspace/manager .
24
27
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
You can’t perform that action at this time.
0 commit comments