forked from gongbell/ContractFuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 940 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 940 Bytes
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 <1601695692@qq.com>
RUN mkdir -p /ContractFuzzer
WORKDIR /ContractFuzzer
ADD go-ethereum-cf go-ethereum
ADD Ethereum Ethereum
ADD examples examples
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
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"]