File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,7 @@ stages:
7070 echo "Patching Dockerfile: $DOCKERFILE_PATH"
7171
7272 # Add ARG and ENV statements to disable systemcrypto for Microsoft Go
73- sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=boringcrypto \nENV GOEXPERIMENT=${GOEXPERIMENT}\nENV CGO_ENABLED=1' "$DOCKERFILE_PATH"
74-
75- # Clear Go module and build caches completely, then rebuild everything with boringcrypto
76- sed -i '/ENV CGO_ENABLED=1/a RUN rm -rf /go/pkg /root/.cache && \\\n mkdir -p /go/pkg /tmp/gocache && \\\n cd /tmp && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 go env && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 GOEXPERIMENT=boringcrypto go install -a -x std' "$DOCKERFILE_PATH"
73+ sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=boringcrypto \nENV GOEXPERIMENT=${GOEXPERIMENT}' "$DOCKERFILE_PATH"
7774 fi
7875
7976 BUILD_ARGS=${GO_ARGS}${ALPINE_ARGS}
You can’t perform that action at this time.
0 commit comments