Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# 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
RUN apk add --no-cache make gcc musl-dev linux-headers git

ADD . /go-expanse
RUN cd /go-expanse && make gexp
RUN git clone https://github.com/expanse-org/go-expanse.git /go-expanse

WORKDIR /go-expanse

RUN git checkout 'tags/v1.7.2'

RUN make gexp

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

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

EXPOSE 9656 9656 42786 42786/udp
ENTRYPOINT ["gexp"]