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.

28 lines
667 B

  1. FROM amazonlinux:2
  2. RUN yum -y update && \
  3. yum -y install wget
  4. RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
  5. rpm -ivh epel-release-latest-7.noarch.rpm
  6. RUN yum -y groupinstall "Development Tools"
  7. RUN yum -y install leveldb-devel which
  8. ENV GOVERSION=1.12.9
  9. RUN cd /tmp && \
  10. wget https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
  11. tar -C /usr/local -xf go${GOVERSION}.linux-amd64.tar.gz && \
  12. mkdir -p /go/src && \
  13. mkdir -p /go/bin
  14. ENV PATH=$PATH:/usr/local/go/bin:/go/bin
  15. ENV GOBIN=/go/bin
  16. ENV GOPATH=/go/src
  17. RUN mkdir -p /tendermint
  18. WORKDIR /tendermint
  19. CMD ["/usr/bin/make", "build_c"]