forked from OpenZeppelin/damn-vulnerable-defi
-
Notifications
You must be signed in to change notification settings - Fork 954
/
Copy pathDockerfile
35 lines (23 loc) · 851 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Base debian build (latest).
FROM mcr.microsoft.com/vscode/devcontainers/base:debian
# Update packages.
RUN apt-get update
# Install pipx
RUN apt-get install -y pipx
# Set the default shell to zsh
ENV SHELL=/usr/bin/zsh
# Running everything under zsh
SHELL ["/usr/bin/zsh", "-c"]
# Dropping privileges
USER vscode
# Install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env
# Install nvm, yarn, npm, pnpm
RUN curl -o- https://raw.githubusercontent.com/devcontainers/features/main/src/node/install.sh | sudo bash
# Install solc-select
RUN pipx install solc-select
# Foundry at specific version
RUN curl -L https://foundry.paradigm.xyz | zsh
RUN foundryup --version nightly-2044faec64f99a21f0e5f0094458a973612d0712
# Clean up
RUN sudo apt-get autoremove -y && sudo apt-get clean -y