You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/Dockerfile.apiserver.konflux
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
FROM registry.access.redhat.com/ubi9/go-toolset:1.25 AS builder
1
+
FROM registry.access.redhat.com/ubi9/go-toolset:1.25.8@sha256:8c5aeac74b4b60dc2e5e44f6b639186b7ec2fec8f0eb9a36d4a32dcf8e255f52 AS builder
2
2
ARG TARGETOS=linux
3
3
ARG TARGETARCH
4
-
ARG CGO_ENABLED=0
4
+
ARG CGO_ENABLED=1
5
5
6
6
WORKDIR /opt/app-root/src
7
7
# Copy the Go Modules manifests
@@ -22,10 +22,9 @@ COPY pkg/ pkg/
22
22
# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
23
23
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
24
24
RUN mkdir -p bin && \
25
-
CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o bin/batch-gateway-apiserver ./cmd/apiserver
25
+
CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOEXPERIMENT=strictfipsruntime go build -a -o bin/batch-gateway-apiserver ./cmd/apiserver
26
26
27
-
# TODO: switch base image to gcr.io/distroless/static:nonroot before release
28
-
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
27
+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7@sha256:d91be7cea9f03a757d69ad7fcdfcd7849dba820110e7980d5e2a1f46ed06ea3b
Copy file name to clipboardExpand all lines: docker/Dockerfile.processor.konflux
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
FROM registry.access.redhat.com/ubi9/go-toolset:1.25 AS builder
1
+
FROM registry.access.redhat.com/ubi9/go-toolset:1.25.8@sha256:8c5aeac74b4b60dc2e5e44f6b639186b7ec2fec8f0eb9a36d4a32dcf8e255f52 AS builder
2
2
ARG TARGETOS=linux
3
3
ARG TARGETARCH
4
-
ARG CGO_ENABLED=0
4
+
ARG CGO_ENABLED=1
5
5
6
6
WORKDIR /opt/app-root/src
7
7
# Copy the Go Modules manifests
@@ -22,10 +22,9 @@ COPY pkg/ pkg/
22
22
# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
23
23
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
24
24
RUN mkdir -p bin && \
25
-
CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o bin/batch-gateway-processor ./cmd/batch-processor
25
+
CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOEXPERIMENT=strictfipsruntime go build -a -o bin/batch-gateway-processor ./cmd/batch-processor
26
26
27
-
# TODO: switch base image to gcr.io/distroless/static:nonroot before release
28
-
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
27
+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7@sha256:d91be7cea9f03a757d69ad7fcdfcd7849dba820110e7980d5e2a1f46ed06ea3b
0 commit comments