containers/docker: remove debug symbols from alpine docker images

This commit is contained in:
yep 2016-07-22 09:57:33 +02:00
parent fb81bc3291
commit 2554b01629
2 changed files with 6 additions and 4 deletions

View file

@ -1,12 +1,13 @@
FROM alpine:3.4
RUN \
apk add --update go git make gcc musl-dev && \
apk add --update go git make gcc musl-dev binutils && \
git clone https://github.com/ethereum/go-ethereum && \
(cd go-ethereum && git checkout develop) && \
(cd go-ethereum && make geth) && \
cp go-ethereum/build/bin/geth /geth && \
apk del go git make gcc musl-dev && \
strip /geth && \
apk del go git make gcc musl-dev binutils && \
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
EXPOSE 8545

View file

@ -1,11 +1,12 @@
FROM alpine:3.4
RUN \
apk add --update go git make gcc musl-dev && \
apk add --update go git make gcc musl-dev binutils && \
git clone https://github.com/ethereum/go-ethereum && \
(cd go-ethereum && make geth) && \
cp go-ethereum/build/bin/geth /geth && \
apk del go git make gcc musl-dev && \
strip /geth && \
apk del go git make gcc musl-dev binutils && \
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
EXPOSE 8545