You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
830 B

  1. FROM alpine:3.6
  2. ENV DATA_ROOT /tendermint
  3. ENV TMHOME $DATA_ROOT
  4. RUN addgroup tmuser && \
  5. adduser -S -G tmuser tmuser
  6. RUN mkdir -p $DATA_ROOT && \
  7. chown -R tmuser:tmuser $DATA_ROOT
  8. RUN apk add --no-cache bash curl jq
  9. ENV GOPATH /go
  10. ENV PATH "$PATH:/go/bin"
  11. RUN mkdir -p /go/src/github.com/tendermint/tendermint && \
  12. apk add --no-cache go build-base git && \
  13. cd /go/src/github.com/tendermint/tendermint && \
  14. git clone https://github.com/tendermint/tendermint . && \
  15. git checkout develop && \
  16. make get_tools && \
  17. make get_vendor_deps && \
  18. make install && \
  19. cd - && \
  20. rm -rf /go/src/github.com/tendermint/tendermint && \
  21. apk del go build-base git
  22. VOLUME $DATA_ROOT
  23. EXPOSE 46656
  24. EXPOSE 46657
  25. ENTRYPOINT ["tendermint"]
  26. CMD ["node", "--moniker=`hostname`", "--proxy_app=kvstore"]