Skip to content

Commit

Permalink
chore: cleanup a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Oct 19, 2023
1 parent 72d28d5 commit b1c87bd
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b1c87bd

Please sign in to comment.