|
|
@ -0,0 +1,35 @@ |
|
|
|
FROM alpine:3.5 |
|
|
|
|
|
|
|
ENV DATA_ROOT /tendermint |
|
|
|
ENV TMROOT $DATA_ROOT |
|
|
|
|
|
|
|
RUN addgroup tmuser && \ |
|
|
|
adduser -S -G tmuser tmuser |
|
|
|
|
|
|
|
RUN mkdir -p $DATA_ROOT && \ |
|
|
|
chown -R tmuser:tmuser $DATA_ROOT |
|
|
|
|
|
|
|
RUN apk add --no-cache bash curl jq |
|
|
|
|
|
|
|
ENV GOPATH /go |
|
|
|
ENV PATH "$PATH:/go/bin" |
|
|
|
RUN mkdir -p /go/src/github.com/tendermint/tendermint && \ |
|
|
|
apk add --no-cache go build-base git && \ |
|
|
|
cd /go/src/github.com/tendermint/tendermint && \ |
|
|
|
git clone https://github.com/tendermint/tendermint . && \ |
|
|
|
git checkout develop && \ |
|
|
|
make get_vendor_deps && \ |
|
|
|
make install && \ |
|
|
|
glide cc && \ # 183Mb => 75Mb |
|
|
|
cd - && \ |
|
|
|
rm -rf /go/src/github.com/tendermint/tendermint && \ |
|
|
|
apk del go build-base git |
|
|
|
|
|
|
|
VOLUME $DATA_ROOT |
|
|
|
|
|
|
|
EXPOSE 46656 |
|
|
|
EXPOSE 46657 |
|
|
|
|
|
|
|
ENTRYPOINT ["tendermint"] |
|
|
|
|
|
|
|
CMD ["node", "--moniker=`hostname`", "--proxy_app=dummy"] |