-
Notifications
You must be signed in to change notification settings - Fork 20.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: support alltools image beside plain Geth
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Build Geth in a stock Go builder container | ||
FROM golang:1.9-alpine as builder | ||
|
||
RUN apk add --no-cache make gcc musl-dev linux-headers | ||
|
||
ADD . /go-ethereum | ||
RUN cd /go-ethereum && make all | ||
|
||
# Pull all binaries into a second stage deploy alpine container | ||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache ca-certificates | ||
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ | ||
|
||
EXPOSE 8545 8546 30303 30303/udp 30304/udp |