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.

35 lines
836 B

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