Skip to content

Commit

Permalink
Modify Dockerfile for gonex (ethereum#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv authored Jul 14, 2019
1 parent 1125c94 commit e7037ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Build Geth in a stock Go builder container
# Build Gonex in a stock Go builder container
FROM golang:1.12-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 . /gonex
RUN cd /gonex && make gonex

# Pull Geth into a second stage deploy alpine container
# Pull Gonex into a second stage deploy alpine container
FROM alpine:latest

RUN apk add --no-cache ca-certificates
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
COPY --from=builder /gonex/build/bin/gonex /usr/local/bin/

EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["geth"]
ENTRYPOINT ["gonex"]
8 changes: 4 additions & 4 deletions Dockerfile.alltools
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Build Geth in a stock Go builder container
# Build Gonex in a stock Go builder container
FROM golang:1.12-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git

ADD . /go-ethereum
RUN cd /go-ethereum && make all
ADD . /gonex
RUN cd /gonex && 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/
COPY --from=builder /gonex/build/bin/* /usr/local/bin/

EXPOSE 8545 8546 30303 30303/udp

0 comments on commit e7037ac

Please sign in to comment.