mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Add files via upload
This commit is contained in:
parent
c6879b32d0
commit
6e28ac87d6
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
|
||||||
|
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