Skip to content

Commit a67add2

Browse files
committed
Use a venv for Crytic tools
1 parent 226f151 commit a67add2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ RUN echo '\ncat /etc/motd\n' >> ~/.bashrc
135135
FROM toolbox-base AS toolbox-ci
136136

137137
ENV HOME="/root"
138-
ENV PATH="${PATH}:${HOME}/.local/bin:${HOME}/.vyper/bin:${HOME}/.foundry/bin"
138+
ENV PATH="${PATH}:${HOME}/.crytic/bin:${HOME}/.vyper/bin:${HOME}/.foundry/bin"
139139

140140
# Install vyper compiler
141141
RUN python3 -m venv ${HOME}/.vyper && \
@@ -152,7 +152,9 @@ RUN curl -fsSL https://raw.githubusercontent.com/foundry-rs/foundry/27cabbd6c905
152152
foundryup
153153

154154
# Install python tools
155-
RUN pip3 install --no-cache-dir --user \
156-
solc-select \
157-
crytic-compile \
158-
slither-analyzer
155+
RUN python3 -m venv ${HOME}/.crytic && \
156+
${HOME}/.crytic/bin/pip3 install --no-cache-dir \
157+
solc-select \
158+
crytic-compile \
159+
slither-analyzer && \
160+
echo '\nexport PATH=${PATH}:${HOME}/.crytic/bin' >> ~/.bashrc

0 commit comments

Comments
 (0)