https://github.com/tendermint/tendermint
Raw File
Tip revision: 2354375207fcdc826eecd39c1e9b9e5e0b03973d authored by samricotta on 09 August 2022, 11:32:16 UTC
Merge branch 'main' into update-to-consensus-params
Tip revision: 2354375
Dockerfile.build_c-amazonlinux
FROM amazonlinux:2

RUN yum -y update && \
    yum -y install wget

RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
    rpm -ivh epel-release-latest-7.noarch.rpm

RUN yum -y groupinstall "Development Tools"
RUN yum -y install leveldb-devel which

ENV GOVERSION=1.12.9

RUN cd /tmp && \
    wget https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
    tar -C /usr/local -xf go${GOVERSION}.linux-amd64.tar.gz && \
    mkdir -p /go/src && \
    mkdir -p /go/bin

ENV PATH=$PATH:/usr/local/go/bin:/go/bin
ENV GOBIN=/go/bin
ENV GOPATH=/go/src

RUN mkdir -p /tendermint
WORKDIR /tendermint

CMD ["/usr/bin/make", "build", "TENDERMINT_BUILD_OPTIONS=cleveldb"]

back to top