forked from dapphub/dapptools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (24 loc) · 915 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
FROM node:20.8
RUN apt-get update && \
apt-get install -y sudo git wget curl make bc && \
git clone https://github.com/dapphub/seth && \
git clone https://github.com/dapphub/dapp && \
make link -C seth && \
make link -C dapp && \
wget https://github.com/dapphub/ethrun/releases/download/v0.2.4/ethrun-v0.2.4-linux.tar.gz && \
tar xfz ethrun-v0.2.4-linux.tar.gz && \
mv ethrun /usr/local/bin/ethrun && \
chmod +x /usr/local/bin/ethrun && \
rm -rf ethrun-v0.2.4-linux.tar.gz && \
wget https://github.com/ethereum/solidity/releases/download/v0.4.23/solc-static-linux && \
mv solc-static-linux /usr/local/bin/solc && \
chmod +x /usr/local/bin/solc && \
echo "node ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER node
ENV USER node
WORKDIR /home/node
RUN curl https://nixos.org/nix/install | bash
RUN /nix/var/nix/profiles/default/bin/nix-env -i jshon
VOLUME /src
WORKDIR /src
CMD [ "dapp", "test"]