mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Merge 5b99ca96b3 into 6d1e292eef
This commit is contained in:
commit
ece24b00a5
2 changed files with 65 additions and 0 deletions
30
containers/docker/alpine3.8/Dockerfile
Normal file
30
containers/docker/alpine3.8/Dockerfile
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
FROM alpine:3.8
|
||||
|
||||
RUN apk add --no-cache --update \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
git \
|
||||
go \
|
||||
linux-headers \
|
||||
make \
|
||||
musl-dev &&\
|
||||
#Clone and build
|
||||
git clone --depth 1 https://github.com/ethereum/go-ethereum &&\
|
||||
cd /go-ethereum &&\
|
||||
make geth &&\
|
||||
cp /go-ethereum/build/bin/geth /geth &&\
|
||||
#CleanUp
|
||||
apk del \
|
||||
gcc \
|
||||
git \
|
||||
go \
|
||||
linux-headers \
|
||||
make \
|
||||
musl-dev &&\
|
||||
rm -rf ~/go-ethereum &&\
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 8545
|
||||
EXPOSE 30303
|
||||
|
||||
ENTRYPOINT ["/geth"]
|
||||
35
containers/docker/ubuntu-xenial/Dockerfile
Normal file
35
containers/docker/ubuntu-xenial/Dockerfile
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
FROM ubuntu:xenial
|
||||
|
||||
ENV PATH=/usr/lib/go-1.10/bin:$PATH
|
||||
|
||||
RUN apt-get update &&\
|
||||
apt-get upgrade -q -y &&\
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
git \
|
||||
golang-1.10 \
|
||||
libc-dev \
|
||||
make &&\
|
||||
#Clone and build
|
||||
git clone --depth 1 \
|
||||
https://github.com/ethereum/go-ethereum &&\
|
||||
cd /go-ethereum &&\
|
||||
make geth &&\
|
||||
cp /go-ethereum/build/bin/geth /geth &&\
|
||||
#CleanUp
|
||||
apt-get remove -y \
|
||||
golang-1.10 \
|
||||
git \
|
||||
make \
|
||||
gcc \
|
||||
libc-dev &&\
|
||||
apt-get autoremove -y &&\
|
||||
apt-get clean &&\
|
||||
rm -rf /go-ethereum
|
||||
|
||||
EXPOSE 8545
|
||||
EXPOSE 30303
|
||||
|
||||
ENTRYPOINT ["/geth"]
|
||||
|
||||
Loading…
Reference in a new issue