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.

47 lines
1.4 KiB

10 years ago
  1. FROM alpine:3.9
  2. LABEL maintainer="hello@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. WORKDIR $TMHOME
  22. # p2p, rpc and prometheus port
  23. EXPOSE 26656 26657 26660
  24. STOPSIGNAL SIGTERM
  25. ARG BINARY=tendermint
  26. COPY $BINARY /usr/bin/tendermint
  27. # You can overwrite these before the first run to influence
  28. # config.json and genesis.json. Additionally, you can override
  29. # CMD to add parameters to `tendermint node`.
  30. ENV PROXY_APP=kvstore MONIKER=dockernode CHAIN_ID=dockerchain
  31. COPY ./docker-entrypoint.sh /usr/local/bin/
  32. ENTRYPOINT ["docker-entrypoint.sh"]
  33. CMD ["node"]
  34. # Expose the data directory as a volume since there's mutable state in there
  35. VOLUME [ "$TMHOME" ]