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.

27 lines
708 B

  1. # Pull base image.
  2. FROM golang:1.4.2-wheezy
  3. # Set the env variables to non-interactive
  4. ENV DEBIAN_FRONTEND noninteractive
  5. ENV DEBIAN_PRIORITY critical
  6. ENV DEBCONF_NOWARNINGS yes
  7. ENV TERM linux
  8. RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  9. # Install go
  10. # ADD tendermint user
  11. RUN useradd tendermint
  12. # Get rid of tendermint user login shell
  13. RUN usermod -s /sbin/nologin tendermint
  14. ADD . /go/src/github.com/tendermint/tendermint
  15. WORKDIR /go/src/github.com/tendermint/tendermint
  16. RUN make
  17. # Set environment variables
  18. USER tendermint
  19. ENV USER tendermint
  20. ENV TMROOT /tendermint_root
  21. # docker run -v $(pwd)/tendermint_root:/tendermint_root
  22. CMD [ "./tendermint", "daemon" ]