forked from dapphub/dapptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (24 loc) · 917 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:7.10.0
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"]