mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
6618c12ef7
Former-commit-id: 64a62da53a5878450d6115fbc7fec6eeb70c7c2c [formerly 2a2a46b57a6a62b13689578cfcd33c8b8bf0529f] Former-commit-id: 58cdafb64755ab12a765d2156a8eab468989f3a4
23 lines
552 B
Docker
23 lines
552 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-ethereum
|
|
RUN cd /go-ethereum && make geth
|
|
|
|
# Pull Geth 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/
|
|
|
|
RUN addgroup -g 1000 geth && \
|
|
adduser -h /root -D -u 1000 -G geth geth && \
|
|
chown geth:geth /root
|
|
|
|
USER geth
|
|
|
|
EXPOSE 8545 8546 30303 30303/udp 30304/udp
|
|
ENTRYPOINT ["geth"]
|