From 1abf51a719ed680a69bde23817f0ea1e2cec3e95 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:21:46 +0800 Subject: [PATCH] style: revert Dockerfile format (#296) --- .gitignore | 1 - Dockerfile | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index fef885502c..1ee8b83022 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,3 @@ profile.cov /dashboard/assets/package-lock.json **/yarn-error.log - diff --git a/Dockerfile b/Dockerfile index c07e7d1f3c..ec46f60773 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,15 @@ ARG BUILDNUM="" # Build Geth in a stock Go builder container FROM golang:1.18-alpine as builder -ENV GOPROXY https://proxy.golang.org,direct +RUN apk add --no-cache gcc musl-dev linux-headers git ADD . /go-ethereum -RUN apk add --no-cache gcc musl-dev linux-headers git ca-certificates \ - && cd /go-ethereum && go run build/ci.go install ./cmd/geth +RUN 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