forked from gongbell/ContractFuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.old
30 lines (22 loc) · 941 Bytes
/
Dockerfile.old
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 golang_nodejs:v1-ly
MAINTAINER LIUYE, BUAA <[email protected]>
RUN mkdir -p /ethereum_test
WORKDIR /ethereum_test
ADD go-ethereum-cf go-ethereum
ADD Ethereum Ethereum
ADD contract_fuzzer contract_fuzzer
ADD contract_tester contract_tester
ADD fuzzer_run.sh fuzzer_run.sh
ADD tester_run.sh tester_run.sh
ADD geth_run.sh geth_run.sh
ADD run.sh run.sh
ADD list /list
RUN \
(cd go-ethereum && make geth) && \
(cd contract_fuzzer && source ./gopath.sh && cd ./src/ContractFuzzer/contractfuzzer && go build -o contract_fuzzer) && \
cp contract_fuzzer/src/ContractFuzzer/contractfuzzer/contract_fuzzer /usr/local/bin && \
cp go-ethereum/build/bin/geth /usr/local/bin/ && \
apk del git make gcc musl-dev linux-headers && \
rm -rf ./go-ethereum && rm -rf ./contract_fuzzer && \
rm -rf /var/cache/apk/*
CMD ["sh","run.sh"]