Skip to content

Commit b83124e

Browse files
committed
chore: fips and patches application in dockerfile
1 parent 0943442 commit b83124e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.konflux/dockerfiles/opc.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ FROM $GO_BUILDER AS builder
55

66
WORKDIR /go/src/github.com/openshift-pipelines/opc
77
COPY . .
8-
RUN go build -buildvcs=false -mod=vendor -o /tmp/opc main.go
8+
COPY .konflux/patches patches/
9+
RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; git apply ${f}; done
10+
ENV GOEXPERIMENT="strictfipsruntime"
11+
RUN go build -buildvcs=false -mod=vendor -tags disable_gcp,strictfipsruntime -o /tmp/opc main.go
912

1013
FROM $RUNTIME
1114
ARG VERSION=opc-main

0 commit comments

Comments
 (0)