mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
multi-stage build
This commit is contained in:
parent
33b158e0ed
commit
72b8e97835
1 changed files with 6 additions and 4 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1,12 +1,14 @@
|
|||
FROM alpine:3.5
|
||||
FROM vertigo/go-builder as builder
|
||||
|
||||
ADD . /go-ethereum
|
||||
RUN \
|
||||
apk add --update git go make gcc musl-dev linux-headers && \
|
||||
(cd go-ethereum && make geth) && \
|
||||
cp go-ethereum/build/bin/geth /geth && \
|
||||
apk del git go make gcc musl-dev linux-headers && \
|
||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
||||
rm -rf /go-ethereum
|
||||
|
||||
FROM alpine:3.5
|
||||
|
||||
COPY --from=builder /geth /geth
|
||||
|
||||
EXPOSE 8545
|
||||
EXPOSE 30303
|
||||
|
|
|
|||
Loading…
Reference in a new issue