Skip to content

Commit cef0635

Browse files
committed
Dockerfile: support alltools image beside plain Geth
1 parent 9b97f98 commit cef0635

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ FROM alpine:latest
1212
RUN apk add --no-cache ca-certificates
1313
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
1414

15-
EXPOSE 8545 8546 30303 30303/udp
15+
EXPOSE 8545 8546 30303 30303/udp 30304/udp
1616
ENTRYPOINT ["geth"]

‎Dockerfile.alltools‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Build Geth in a stock Go builder container
2+
FROM golang:1.9-alpine as builder
3+
4+
RUN apk add --no-cache make gcc musl-dev linux-headers
5+
6+
ADD . /go-ethereum
7+
RUN cd /go-ethereum && make all
8+
9+
# Pull all binaries into a second stage deploy alpine container
10+
FROM alpine:latest
11+
12+
RUN apk add --no-cache ca-certificates
13+
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/
14+
15+
EXPOSE 8545 8546 30303 30303/udp 30304/udp

0 commit comments

Comments
 (0)