File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818# build go proxy from source
1919FROM golang:1.15 AS builder_source
20- RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv /go/bin/main /bin/proxy
20+ ARG GO_PROXY_GITHUB_USER=apache
21+ ARG GO_PROXY_GITHUB_BRANCH=master
22+ RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
23+ https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
24+ cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
25+ mv proxy /bin/proxy
2126
2227# or build it from a release
2328FROM golang:1.15 AS builder_release
Original file line number Diff line number Diff line change 1717
1818# build go proxy from source
1919FROM golang:1.15 AS builder_source
20- RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv /go/bin/main /bin/proxy
20+ ARG GO_PROXY_GITHUB_USER=apache
21+ ARG GO_PROXY_GITHUB_BRANCH=master
22+ RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
23+ https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
24+ cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
25+ mv proxy /bin/proxy
2126
2227# or build it from a release
2328FROM golang:1.15 AS builder_release
Original file line number Diff line number Diff line change 1717
1818# build go proxy from source
1919FROM golang:1.15 AS builder_source
20- RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv /go/bin/main /bin/proxy
20+ ARG GO_PROXY_GITHUB_USER=apache
21+ ARG GO_PROXY_GITHUB_BRANCH=master
22+ RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
23+ https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
24+ cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
25+ mv proxy /bin/proxy
2126
2227# or build it from a release
2328FROM golang:1.15 AS builder_release
You can’t perform that action at this time.
0 commit comments