From 61046c41571bf6d6737c92ff03757ed6553e44d1 Mon Sep 17 00:00:00 2001 From: Mohammad Omidvar Date: Mon, 11 Mar 2024 11:15:54 -0700 Subject: [PATCH] Fix reproducibility of the docker image (#1924) Add `--locked` flag when installing `sccache` in the first stages to ensure the image gets built when the base image's Rust version satisfies `sccache`'s MSRV. Fixes #1923 :bug: Co-authored-by: Dongjia "toka" Zhang --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3ed1006ea4..c6ee0219ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ LABEL "maintainer"="afl++ team " LABEL "about"="LibAFL Docker image" # install sccache to cache subsequent builds of dependencies -RUN cargo install sccache +RUN cargo install --locked sccache ENV HOME=/root ENV SCCACHE_CACHE_SIZE="1G"