This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-rust.git
The following commit(s) were added to refs/heads/master by this push:
new 0060ad7 Update Dockerfile build from source stanza. (#29)
0060ad7 is described below
commit 0060ad782e00d69690977e478e40776839556ca1
Author: rodric rabbah <[email protected]>
AuthorDate: Mon Mar 1 17:54:37 2021 -0500
Update Dockerfile build from source stanza. (#29)
---
core/rust1.34/Dockerfile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/rust1.34/Dockerfile b/core/rust1.34/Dockerfile
index 28d95c4..0377214 100644
--- a/core/rust1.34/Dockerfile
+++ b/core/rust1.34/Dockerfile
@@ -17,7 +17,12 @@
# build go proxy from source
FROM golang:1.15 AS builder_source
-RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv
/go/bin/main /bin/proxy
+ARG GO_PROXY_GITHUB_USER=apache
+ARG GO_PROXY_GITHUB_BRANCH=master
+RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
+ https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
+ cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
+ mv proxy /bin/proxy
# or build it from a release
FROM golang:1.15 AS builder_release