From f07050dd0dea12f6da9ec30fb42e52f23bf4843a Mon Sep 17 00:00:00 2001 From: maskpp <32827930+mask-pp@users.noreply.github.com> Date: Mon, 7 Mar 2022 15:53:50 +0800 Subject: [PATCH] Upgrade dockerfile (#34) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7badbc1320a4..6e303d894562 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,15 @@ ARG BUILDNUM="" # Build Geth in a stock Go builder container FROM golang:1.17-alpine as builder -RUN apk add --no-cache gcc musl-dev linux-headers git +ENV GOPROXY https://goproxy.io,direct ADD . /go-ethereum -RUN cd /go-ethereum && go run build/ci.go install ./cmd/geth +RUN apk add --no-cache gcc musl-dev linux-headers git ca-certificates \ + && cd /go-ethereum && go run build/ci.go install ./cmd/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/ EXPOSE 8545 8546 30303 30303/udp