go-ethereum/Dockerfile
2018-04-28 13:05:13 +07:00

22 lines
555 B
Docker

# Build Geth in a stock Go builder container
FROM golang:1.10-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers
ADD . /go-etherfact
RUN cd /go-etherfact && make getf
# Pull Geth into a second stage deploy alpine container
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go-etherfact/build/bin/getf /usr/local/bin/
RUN addgroup -g 1000 getf && \
adduser -h /root -D -u 1000 -G getf getf && \
chown getf:getf /root
USER getf
EXPOSE 8545 8546 30303 30303/udp 30304/udp
ENTRYPOINT ["getf"]