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.

33 lines
743 B

  1. # Pull base image.
  2. FROM golang:1.7.4
  3. # Grab deps (jq, hexdump, xxd, killall)
  4. RUN apt-get update && \
  5. apt-get install -y --no-install-recommends \
  6. jq bsdmainutils vim-common psmisc netcat
  7. # Setup tendermint repo
  8. ENV REPO $GOPATH/src/github.com/tendermint/tendermint
  9. WORKDIR $REPO
  10. # Install the apps
  11. ADD scripts/install_abci_apps.sh install_abci_apps.sh
  12. RUN bash install_abci_apps.sh
  13. # Install the vendored dependencies before copying code
  14. # docker caching prevents reinstall on code change!
  15. ADD glide.yaml glide.yaml
  16. ADD glide.lock glide.lock
  17. ADD Makefile Makefile
  18. RUN make get_vendor_deps
  19. # Now copy in the code
  20. COPY . $REPO
  21. RUN go install ./cmd/tendermint
  22. # expose the volume for debugging
  23. VOLUME $REPO
  24. EXPOSE 46656
  25. EXPOSE 46657