File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal as builder
2222ARG GO_VER
2323ARG ARCH
2424# gcc required for cgo
25-
2625RUN microdnf install -y make gcc tar gzip gcc-c++ && microdnf clean all
2726RUN echo "GO_VER=${GO_VER}" && echo "ARCH=${ARCH}"
28- RUN curl -sL https://go.dev/dl/go${GO_VER}.linux-${ARCH}.tar.gz | tar zxf - -C /usr/local
27+ RUN test -n "$GO_VER" && test -n "$ARCH" || (echo "GO_VER or ARCH not set!" && exit 1)
28+
29+ RUN curl -sSL https://go.dev/dl/go${GO_VER}.linux-${ARCH}.tar.gz | tar zxf - -C /usr/local
30+
2931ENV PATH="/usr/local/go/bin:$PATH"
3032COPY . /go/src/github.ibm.com/fabric/fabric-chaincode-builder
3133WORKDIR /go/src/github.ibm.com/fabric/fabric-chaincode-builder
You can’t perform that action at this time.
0 commit comments