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.

38 lines
927 B

  1. FROM golang:1.10
  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. ENV GOBIN $GOPATH/bin
  11. WORKDIR $REPO
  12. # Install the vendored dependencies before copying code
  13. # docker caching prevents reinstall on code change!
  14. ADD Gopkg.toml Gopkg.toml
  15. ADD Gopkg.lock Gopkg.lock
  16. ADD Makefile Makefile
  17. RUN make get_tools
  18. RUN make get_vendor_deps
  19. # Install the apps
  20. ADD scripts scripts
  21. RUN bash scripts/install_abci_apps.sh
  22. # Now copy in the code
  23. # NOTE: this will overwrite whatever is in vendor/
  24. COPY . $REPO
  25. RUN go install ./cmd/tendermint
  26. # expose the volume for debugging
  27. VOLUME $REPO
  28. EXPOSE 46656
  29. EXPOSE 46657