From b1c87bd608a7c028419bcd083a7c5fbb57764ea4 Mon Sep 17 00:00:00 2001 From: Aleksandar Marinkovic Date: Thu, 19 Oct 2023 10:59:02 +0200 Subject: [PATCH] chore: cleanup a bit --- Dockerfile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index dbc22fe..c9c87b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,26 @@ FROM node:lts-slim -# Install deps -RUN apt update && apt install -y \ - g++ \ - make \ - curl \ - git \ - jq \ - python3 \ - python3-pip \ - build-essential +# setup system dependencies +RUN apt update && apt install -y g++ make curl git jq python3 python3-pip build-essential RUN pip3 install slither-analyzer --break-system-packages + +# setup rust SHELL ["/bin/bash", "-c"] RUN curl -sSf https://sh.rustup.rs | bash -s -- -y RUN echo "source ~/.cargo/env" > ~/.bashrc + +# setup foundry RUN source ~/.bashrc && \ cargo install svm-rs && \ svm install 0.7.6 && \ svm install 0.8.20 && \ svm use 0.8.20 && \ cargo install solstat + RUN curl -L https://foundry.paradigm.xyz | bash RUN source ~/.bashrc && foundryup -# Update PATH to include forge +# Update PATH to include foundry ENV PATH="/root/.cargo/bin:/root/.foundry/bin:${PATH}" # Start in the shell