Skip to content

Commit

Permalink
Upgrade dockerfile (ethereum#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp authored Mar 7, 2022
1 parent 2040f8c commit f07050d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f07050d

Please sign in to comment.