2018-03-07 21:29:21 +00:00
|
|
|
FROM alpine:3.7
|
2018-01-29 19:44:18 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk add --update go git make gcc musl-dev linux-headers ca-certificates && \
|
2018-03-07 21:29:21 +00:00
|
|
|
git clone --depth 1 --branch release/1.8 https://github.com/ethereum/go-ethereum && \
|
2018-01-29 19:44:18 +00:00
|
|
|
(cd go-ethereum && make geth) && \
|
|
|
|
cp go-ethereum/build/bin/geth /geth && \
|
|
|
|
apk del go git make gcc musl-dev linux-headers && \
|
|
|
|
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
EXPOSE 8545
|
|
|
|
EXPOSE 30303
|
|
|
|
|
|
|
|
ENTRYPOINT ["/geth"]
|