From 5869f7185809d2b233931d02ae7a0c5ae5f575c6 Mon Sep 17 00:00:00 2001 From: Vlad Frolov Date: Mon, 17 Sep 2018 14:04:29 +0300 Subject: [PATCH] Drop Cargo registry caches after cargo-audit installation --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 96f0804..fb3e3aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -115,7 +115,8 @@ ENV OPENSSL_DIR=/usr/local/musl/ \ # Install some useful Rust tools from source. This will use the static linking # toolchain, but that should be OK. -RUN cargo install -f cargo-audit +RUN cargo install -f cargo-audit && \ + rm -rf /home/rust/.cargo/registry/ # Expect our source code to live in /home/rust/src. We'll run the build as # user `rust`, which will be uid 1000, gid 1000 outside the container.