From a67add2f2b6d6f106b62ce7a6454e3ca2b1b5326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Mon, 16 Dec 2024 23:29:11 +0100 Subject: [PATCH] Use a venv for Crytic tools --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 63a63e6..1cbbaee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -135,7 +135,7 @@ RUN echo '\ncat /etc/motd\n' >> ~/.bashrc FROM toolbox-base AS toolbox-ci ENV HOME="/root" -ENV PATH="${PATH}:${HOME}/.local/bin:${HOME}/.vyper/bin:${HOME}/.foundry/bin" +ENV PATH="${PATH}:${HOME}/.crytic/bin:${HOME}/.vyper/bin:${HOME}/.foundry/bin" # Install vyper compiler RUN python3 -m venv ${HOME}/.vyper && \ @@ -152,7 +152,9 @@ RUN curl -fsSL https://raw.githubusercontent.com/foundry-rs/foundry/27cabbd6c905 foundryup # Install python tools -RUN pip3 install --no-cache-dir --user \ - solc-select \ - crytic-compile \ - slither-analyzer +RUN python3 -m venv ${HOME}/.crytic && \ + ${HOME}/.crytic/bin/pip3 install --no-cache-dir \ + solc-select \ + crytic-compile \ + slither-analyzer && \ + echo '\nexport PATH=${PATH}:${HOME}/.crytic/bin' >> ~/.bashrc