Skip to content

Commit 0060ad7

Browse files
authored
Update Dockerfile build from source stanza. (#29)
1 parent ac4ed59 commit 0060ad7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/rust1.34/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
# build go proxy from source
1919
FROM 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
2328
FROM golang:1.15 AS builder_release

0 commit comments

Comments
 (0)