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.

34 lines
800 B

  1. FROM alpine:3.7
  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 install && \
  18. cd - && \
  19. rm -rf /go/src/github.com/tendermint/tendermint && \
  20. apk del go build-base git
  21. VOLUME $DATA_ROOT
  22. EXPOSE 26656
  23. EXPOSE 26657
  24. ENTRYPOINT ["tendermint"]
  25. CMD ["node", "--moniker=`hostname`", "--proxy_app=kvstore"]