style: revert Dockerfile format (#296)

This commit is contained in:
HAOYUatHZ 2023-04-20 18:21:46 +08:00 committed by GitHub
parent 60ced6cf4d
commit 1abf51a719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View file

@ -47,4 +47,3 @@ profile.cov
/dashboard/assets/package-lock.json
**/yarn-error.log

View file

@ -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