From 504815091fc8339cd06003e6394408a7a5738ebd Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Tue, 15 Nov 2016 17:57:56 +0000 Subject: [PATCH] containers/docker: Fix dockerfiles for new branch layout; add dockerfile in root --- Dockerfile | 14 ++++++++++++++ containers/docker/develop-alpine/Dockerfile | 2 +- containers/docker/master-alpine/Dockerfile | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..2d35c0141d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:3.3 + +ADD . /go-ethereum +RUN \ + apk add --update go make gcc musl-dev && \ + (cd go-ethereum && make geth) && \ + cp go-ethereum/build/bin/geth /geth && \ + apk del go make gcc musl-dev && \ + rm -rf /go-ethereum && rm -rf /var/cache/apk/* + +EXPOSE 8545 +EXPOSE 30303 + +ENTRYPOINT ["/geth"] diff --git a/containers/docker/develop-alpine/Dockerfile b/containers/docker/develop-alpine/Dockerfile index f3247d1788..3393c43374 100644 --- a/containers/docker/develop-alpine/Dockerfile +++ b/containers/docker/develop-alpine/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.4 RUN \ apk add --update go git make gcc musl-dev && \ - git clone --depth 1 --branch develop https://github.com/ethereum/go-ethereum && \ + git clone --depth 1 https://github.com/ethereum/go-ethereum && \ (cd go-ethereum && make geth) && \ cp go-ethereum/build/bin/geth /geth && \ apk del go git make gcc musl-dev && \ diff --git a/containers/docker/master-alpine/Dockerfile b/containers/docker/master-alpine/Dockerfile index 3393c43374..5131c473a6 100644 --- a/containers/docker/master-alpine/Dockerfile +++ b/containers/docker/master-alpine/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.4 RUN \ apk add --update go git make gcc musl-dev && \ - git clone --depth 1 https://github.com/ethereum/go-ethereum && \ + git clone --depth 1 --branch release/1.5 https://github.com/ethereum/go-ethereum && \ (cd go-ethereum && make geth) && \ cp go-ethereum/build/bin/geth /geth && \ apk del go git make gcc musl-dev && \