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 🐛

Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
This commit is contained in:
Mohammad Omidvar 2024-03-11 11:15:54 -07:00 committed by GitHub
parent 9b780cc0a7
commit 61046c4157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ LABEL "maintainer"="afl++ team <afl@aflplus.plus>"
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"