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.

36 lines
856 B

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