summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorzc <zc2638@qq.com>2021-12-28 15:43:16 +0800
committerzc <zc2638@qq.com>2022-01-11 09:56:25 +0800
commite464aa0addd222ddd792fd5026f01825e9151a9a (patch)
tree733b9a36c15752acee63a42d38b629cb75add6b2 /build
parentMerge pull request #3505 from fisherxu/stale-bot (diff)
downloadkubeedge-e464aa0addd222ddd792fd5026f01825e9151a9a.tar.gz
add a basic image for building various components of KubeEdge
Signed-off-by: zc <zc2638@qq.com>
Diffstat (limited to 'build')
-rw-r--r--build/docker/build-tools.dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/docker/build-tools.dockerfile b/build/docker/build-tools.dockerfile
new file mode 100644
index 000000000..8fb8fd07c
--- /dev/null
+++ b/build/docker/build-tools.dockerfile
@@ -0,0 +1,14 @@
+# As a basic image for building various components of KubeEdge
+FROM ubuntu:18.04
+RUN apt-get update && apt-get install -y wget \
+ vim git make gcc \
+ upx-ucl gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabi libc6-dev-armel-cross &&\
+ apt-get autoremove -y &&\
+ apt-get clean &&\
+ rm -rf /var/lib/apt/lists/*
+RUN wget -c https://dl.google.com/go/go1.17.linux-amd64.tar.gz -O - | tar -xz -C /usr/local
+ENV GO111MODULE=on
+ENV GOPROXY=https://goproxy.io,direct
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/go
+ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin