diff --git a/Dockerfile b/Dockerfile index 97cc6df03a..68f37ed02d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,6 @@ ARG BUILD_TAG # Enable https://github.com/mozilla/sccache to cache Rust crates' compilation results in Docker builds. # Set up sccache to use an AWS S3 bucket for cache results, to reuse it between `docker build` invocations. -# sccache falls back to local filesystem if S3 is misconfigured, not failing the build ARG RUSTC_WRAPPER=sccache ARG SCCACHE_REGION=eu-central-1 ARG SCCACHE_S3_KEY_PREFIX=sccache diff --git a/Dockerfile.build-tools b/Dockerfile.build-tools index d17832ce25..7fe1ee9102 100644 --- a/Dockerfile.build-tools +++ b/Dockerfile.build-tools @@ -193,6 +193,8 @@ RUN curl -sSO https://static.rust-lang.org/rustup/dist/$(uname -m)-unknown-linux rm -rf /home/nonroot/.cargo/registry && \ rm -rf /home/nonroot/.cargo/git ENV RUSTC_WRAPPER=sccache +# Let sscache to fall back to local filesystem if S3 is misconfigured, not failing the build +ENV SCCACHE_IGNORE_SERVER_IO_ERROR=1 # Show versions RUN whoami \