Add files via upload

Remove the ENV variable from the Dockerfile. Fix Dockerfile for alpine3.8
This commit is contained in:
Samuel dos Santos 2018-08-12 10:52:26 +01:00 committed by GitHub
parent ad3f54f3b6
commit c6879b32d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 10 deletions

View file

@ -7,23 +7,21 @@ RUN apk add --no-cache --update \
go \ go \
linux-headers \ linux-headers \
make \ make \
musl-dev musl-dev &&\
#Clone
git clone --depth 1 https://github.com/ethereum/go-ethereum &&\
RUN git clone --depth 1 https://github.com/ethereum/go-ethereum &&\ cd /go-ethereum &&\
cd go-ethereum &&\
make geth &&\ make geth &&\
cp go-ethereum/build/bin/geth /geth cp /go-ethereum/build/bin/geth /geth &&\
#CleanUp
apk del \
RUN apk del \
gcc \ gcc \
git \ git \
go \ go \
linux-headers \ linux-headers \
make \ make \
musl-dev &&\ musl-dev &&\
rm -rf /go-ethereum &&\ rm -rf ~/go-ethereum &&\
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
EXPOSE 8545 EXPOSE 8545

35
ubuntu-xenial/Dockerfile Normal file
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"]