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.

39 lines
1.2 KiB

9 years ago
  1. FROM alpine:3.7
  2. MAINTAINER Greg Szabo <greg@tendermint.com>
  3. # Tendermint will be looking for the genesis file in /tendermint/config/genesis.json
  4. # (unless you change `genesis_file` in config.toml). You can put your config.toml and
  5. # private validator file into /tendermint/config.
  6. #
  7. # The /tendermint/data dir is used by tendermint to store state.
  8. ENV TMHOME /tendermint
  9. # OS environment setup
  10. # Set user right away for determinism, create directory for persistence and give our user ownership
  11. # jq and curl used for extracting `pub_key` from private validator while
  12. # deploying tendermint with Kubernetes. It is nice to have bash so the users
  13. # could execute bash commands.
  14. RUN apk update && \
  15. apk upgrade && \
  16. apk --no-cache add curl jq bash && \
  17. addgroup tmuser && \
  18. adduser -S -G tmuser tmuser -h "$TMHOME"
  19. # Run the container with tmuser by default. (UID=100, GID=1000)
  20. USER tmuser
  21. # Expose the data directory as a volume since there's mutable state in there
  22. VOLUME [ $TMHOME ]
  23. WORKDIR $TMHOME
  24. # p2p and rpc port
  25. EXPOSE 26656 26657
  26. ENTRYPOINT ["/usr/bin/tendermint"]
  27. CMD ["node", "--moniker=`hostname`"]
  28. STOPSIGNAL SIGTERM
  29. ARG BINARY=tendermint
  30. COPY $BINARY /usr/bin/tendermint