summaryrefslogtreecommitdiff
path: root/build/cloud
diff options
context:
space:
mode:
authorKevin Wang <kevinwzf0126@gmail.com>2020-03-09 17:56:55 +0800
committerKevin Wang <kevinwzf0126@gmail.com>2020-03-09 20:58:43 +0800
commit598be14cee71ff99827e32dbfa3fea8b8cbdc255 (patch)
tree53c0da3266b0feb832eea2f1df41b560bc53b9f7 /build/cloud
parentMerge pull request #1527 from fisherxu/refactor-rm (diff)
downloadkubeedge-598be14cee71ff99827e32dbfa3fea8b8cbdc255.tar.gz
update build image for components, fix -ldflags
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
Diffstat (limited to 'build/cloud')
-rw-r--r--build/cloud/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/cloud/Dockerfile b/build/cloud/Dockerfile
index 1960a73b5..604ace6a5 100644
--- a/build/cloud/Dockerfile
+++ b/build/cloud/Dockerfile
@@ -1,8 +1,10 @@
-FROM golang:1.12-alpine3.10 AS builder
+FROM golang:1.13.8-alpine3.10 AS builder
+
+ARG GO_LDFLAGS
COPY . /go/src/github.com/kubeedge/kubeedge
-RUN CGO_ENABLED=0 go build -v -o /usr/local/bin/cloudcore -ldflags="-w -s" \
+RUN CGO_ENABLED=0 go build -v -o /usr/local/bin/cloudcore -ldflags "$GO_LDFLAGS -w -s" \
github.com/kubeedge/kubeedge/cloud/cmd/cloudcore