From 8079206142d7e11dbfbd7487c8d7aa05bfb3c7af Mon Sep 17 00:00:00 2001 From: Ehsan Date: Sun, 26 Apr 2026 19:16:31 +0300 Subject: [PATCH] docs(install): stream gog/goplaces binaries with tar -xzO to drop /tmp footprint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses Greptile P2 / Codex review: extracting full tarballs to /tmp left LICENSE/README.md/CHANGELOG.md/checksums.txt behind in the Docker image layer. Using `tar -xzO ` writes only the binary to stdout, which we redirect straight to /usr/local/bin — no /tmp staging, no cleanup, fewer RUN steps. --- docs/install/docker-vm-runtime.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/install/docker-vm-runtime.md b/docs/install/docker-vm-runtime.md index e60d8bc7f66..27b8e15a9f6 100644 --- a/docs/install/docker-vm-runtime.md +++ b/docs/install/docker-vm-runtime.md @@ -40,15 +40,13 @@ RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/* # Example binary 1: Gmail CLI (gogcli — installs as `gog`) ARG GOGCLI_VERSION=0.13.0 RUN curl -L https://github.com/steipete/gogcli/releases/download/v${GOGCLI_VERSION}/gogcli_${GOGCLI_VERSION}_linux_amd64.tar.gz \ - | tar -xz -C /tmp \ - && mv /tmp/gog /usr/local/bin/gog \ + | tar -xzO gog > /usr/local/bin/gog \ && chmod +x /usr/local/bin/gog # Example binary 2: Google Places CLI ARG GOPLACES_VERSION=0.3.0 RUN curl -L https://github.com/steipete/goplaces/releases/download/v${GOPLACES_VERSION}/goplaces_${GOPLACES_VERSION}_linux_amd64.tar.gz \ - | tar -xz -C /tmp \ - && mv /tmp/goplaces /usr/local/bin/goplaces \ + | tar -xzO goplaces > /usr/local/bin/goplaces \ && chmod +x /usr/local/bin/goplaces # Example binary 3: WhatsApp CLI