mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Add Dockerfile
This commit is contained in:
parent
6a3b1a808e
commit
3a5e745bb2
1 changed files with 11 additions and 8 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -1,16 +1,19 @@
|
||||||
# Build Geth in a stock Go builder container
|
|
||||||
FROM golang:1.10-alpine as builder
|
FROM golang:1.10-alpine as builder
|
||||||
|
|
||||||
RUN apk add --no-cache make gcc musl-dev linux-headers
|
RUN apk add --no-cache make gcc musl-dev linux-headers
|
||||||
|
|
||||||
ADD . /go-ethereum
|
ADD . /tomochain
|
||||||
RUN cd /go-ethereum && make geth
|
RUN cd /tomochain && make tomo
|
||||||
|
|
||||||
# Pull Geth into a second stage deploy alpine container
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates
|
LABEL maintainer="etienne@tomochain.com"
|
||||||
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
|
|
||||||
|
|
||||||
EXPOSE 8545 8546 30303 30303/udp 30304/udp
|
COPY --from=builder /tomochain/build/bin/tomo /usr/local/bin/tomo
|
||||||
ENTRYPOINT ["geth"]
|
|
||||||
|
RUN chmod +x /usr/local/bin/tomo
|
||||||
|
|
||||||
|
EXPOSE 8545
|
||||||
|
EXPOSE 30303
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/tomo", "--help"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue