-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2485834
commit 171dd97
Showing
2 changed files
with
24 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# Build Geth in a stock Go builder container | ||
# Build Geneth in a stock Go builder container | ||
FROM golang:1.15-alpine as builder | ||
|
||
RUN apk add --no-cache make gcc musl-dev linux-headers git | ||
|
||
ADD . /go-ethereum | ||
RUN cd /go-ethereum && make geth | ||
ADD . /geneth | ||
RUN cd /geneth && make geneth | ||
|
||
# Pull Geth into a second stage deploy alpine container | ||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache ca-certificates logrotate | ||
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ | ||
COPY --from=builder /geneth/build/bin/geth /usr/local/bin/ | ||
COPY --from=builder /geneth/build/bin/geneth /usr/local/bin/ | ||
|
||
EXPOSE 8545 8546 30303 30303/udp | ||
ENTRYPOINT ["geth"] | ||
ENTRYPOINT ["geneth"] |
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