mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
style: revert Dockerfile format (#296)
This commit is contained in:
parent
60ced6cf4d
commit
1abf51a719
2 changed files with 3 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -47,4 +47,3 @@ profile.cov
|
|||
/dashboard/assets/package-lock.json
|
||||
|
||||
**/yarn-error.log
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue