Add files via upload

This commit is contained in:
Samuel dos Santos 2018-08-12 10:55:01 +01:00 committed by GitHub
parent c6879b32d0
commit 6e28ac87d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 0 deletions

View 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"]

View 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"]