aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-16 05:54:51 +0800
committerGitHub <noreply@github.com>2016-11-16 05:54:51 +0800
commitc66e18b17508722aff0da035acb8f17330d7fe27 (patch)
tree590d1821b717e058eb04d295783008fbe5f2afa8
parenta96d6c68e2933ab4121358bee91d1bd011efe67a (diff)
parent504815091fc8339cd06003e6394408a7a5738ebd (diff)
downloadgo-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.tar
go-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.tar.gz
go-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.tar.bz2
go-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.tar.lz
go-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.tar.xz
go-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.tar.zst
go-tangerine-c66e18b17508722aff0da035acb8f17330d7fe27.zip
Merge pull request #3271 from Arachnid/dockerfiles
Dockerfile revamp
-rw-r--r--Dockerfile14
-rw-r--r--containers/docker/develop-alpine/Dockerfile2
-rw-r--r--containers/docker/master-alpine/Dockerfile2
3 files changed, 16 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..2d35c0141
--- /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 f3247d178..3393c4337 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 3393c4337..5131c473a 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 && \