diff --git a/cobalt/docker/linux/Dockerfile b/cobalt/docker/linux/Dockerfile index 2629cbb20fb29..b7b326216c5dd 100644 --- a/cobalt/docker/linux/Dockerfile +++ b/cobalt/docker/linux/Dockerfile @@ -31,7 +31,16 @@ RUN apt-get update && apt-get install -y \ jq \ && rm -rf /var/lib/apt/lists/* -ADD files/sccache /usr/local/bin +# === Install portable sccache binary +ARG SCCACHE=sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz +ARG SCCACHE_SHA256=e6cd8485f93d683a49c83796b9986f090901765aa4feb40d191b03ea770311d8 +RUN cd /tmp \ + && curl -L -O https://github.com/mozilla/sccache/releases/download/v0.3.0/${SCCACHE} \ + && echo "${SCCACHE_SHA256} *${SCCACHE}" | sha256sum -c - \ + && tar xvzf ${SCCACHE} -C /usr/local/bin --strip-components=1 \ + && chmod +x /usr/local/bin/sccache \ + && rm -rf ${SCCACHE} \ + && sccache --version # TODO: b/379174067 - Move variables out of container. ENV SCCACHE_GCS_BUCKET=githubactions-chrome-sccache diff --git a/cobalt/docker/linux/files/sccache b/cobalt/docker/linux/files/sccache deleted file mode 100755 index 51521d5b88c83..0000000000000 Binary files a/cobalt/docker/linux/files/sccache and /dev/null differ