github.com/DFWallet/tendermint-cosmos@v0.0.2/DOCKER/Dockerfile.build_c-amazonlinux (about) 1 FROM amazonlinux:2 2 3 RUN yum -y update && \ 4 yum -y install wget 5 6 RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ 7 rpm -ivh epel-release-latest-7.noarch.rpm 8 9 RUN yum -y groupinstall "Development Tools" 10 RUN yum -y install leveldb-devel which 11 12 ENV GOVERSION=1.12.9 13 14 RUN cd /tmp && \ 15 wget https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \ 16 tar -C /usr/local -xf go${GOVERSION}.linux-amd64.tar.gz && \ 17 mkdir -p /go/src && \ 18 mkdir -p /go/bin 19 20 ENV PATH=$PATH:/usr/local/go/bin:/go/bin 21 ENV GOBIN=/go/bin 22 ENV GOPATH=/go/src 23 24 RUN mkdir -p /tendermint 25 WORKDIR /tendermint 26 27 CMD ["/usr/bin/make", "build", "TENDERMINT_BUILD_OPTIONS=cleveldb"] 28