From d2603265c58a16dbef374f366977ff82c81be069 Mon Sep 17 00:00:00 2001 From: Jack Kleeman Date: Thu, 1 Feb 2024 13:54:13 +0000 Subject: [PATCH] Add buf cli --- docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 04e7e61..2f23a57 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -42,6 +42,10 @@ RUN arch=$(echo "$TARGETARCH" | sed s/arm64/aarch64/ | sed s/amd64/x86_64/) && \ ENV SCCACHE_DIR=/usr/local/sccache +RUN arch=$(echo "$TARGETARCH" | sed s/arm64/aarch64/ | sed s/amd64/x86_64/) && \ + curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.29.0/buf-Linux-${arch}" -o "/usr/bin/buf" && \ + chmod +x "/usr/bin/buf" + ENV CC_x86_64_unknown_linux_musl="sccache x86_64-unknown-linux-musl-gcc" ENV CXX_x86_64_unknown_linux_musl="sccache x86_64-unknown-linux-musl-g++" ENV AR_x86_64_unknown_linux_musl="x86_64-unknown-linux-musl-ar"