From d1fb9e55664079aad63dde9740284c26578f37c6 Mon Sep 17 00:00:00 2001 From: shaoting-huang Date: Sat, 18 May 2024 18:32:23 +0800 Subject: [PATCH] update Dockerfile Signed-off-by: shaoting-huang --- build/docker/milvus/ubuntu20.04/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/docker/milvus/ubuntu20.04/Dockerfile b/build/docker/milvus/ubuntu20.04/Dockerfile index 842a948466698..b5e728e43f854 100644 --- a/build/docker/milvus/ubuntu20.04/Dockerfile +++ b/build/docker/milvus/ubuntu20.04/Dockerfile @@ -18,6 +18,16 @@ RUN apt-get update && \ apt-get remove --purge -y && \ rm -rf /var/lib/apt/lists/* +# Install Go +ENV GOPATH /go +ENV GOROOT /usr/local/go +ENV GO111MODULE on +ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH +RUN mkdir -p /usr/local/go && wget -qO- "https://go.dev/dl/go1.21.10.linux-$TARGETARCH.tar.gz" | tar --strip-components=1 -xz -C /usr/local/go && \ + mkdir -p "$GOPATH/src" "$GOPATH/bin" && \ + go clean --modcache && \ + chmod -R 777 "$GOPATH" && chmod -R a+w $(go env GOTOOLDIR) + COPY --chown=root:root --chmod=774 ./bin/ /milvus/bin/ COPY --chown=root:root --chmod=774 ./configs/ /milvus/configs/