Skip to content

Commit

Permalink
Use a venv for Crytic tools
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Dec 16, 2024
1 parent 226f151 commit a67add2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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

0 comments on commit a67add2

Please sign in to comment.