github.com/aakash4dev/cometbft@v0.38.2/spec/ivy-proofs/Dockerfile (about)

     1  # we need python2 support, which was dropped after buster:
     2  FROM debian:buster
     3  
     4  RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
     5  RUN apt-get update
     6  RUN apt-get install -y apt-utils
     7  
     8  # Install and configure locale `en_US.UTF-8`
     9  RUN apt-get install -y locales && \
    10      sed -i -e "s/# $en_US.*/en_US.UTF-8 UTF-8/" /etc/locale.gen && \
    11      dpkg-reconfigure --frontend=noninteractive locales && \
    12      update-locale LANG=en_US.UTF-8
    13  ENV LANG=en_US.UTF-8
    14  
    15  RUN apt-get update
    16  RUN apt-get install -y git python2 python-pip g++ cmake python-ply python-tk tix pkg-config libssl-dev python-setuptools
    17  
    18  # create a user:
    19  RUN useradd -ms /bin/bash user
    20  USER user
    21  WORKDIR /home/user
    22  
    23  RUN git clone --recurse-submodules https://github.com/kenmcmil/ivy.git
    24  WORKDIR /home/user/ivy/
    25  RUN git checkout 271ee38980699115508eb90a0dd01deeb750a94b
    26  
    27  RUN python2.7 build_submodules.py
    28  RUN mkdir -p "/home/user/python/lib/python2.7/site-packages"
    29  ENV PYTHONPATH="/home/user/python/lib/python2.7/site-packages"
    30  # need to install pyparsing manually because otherwise wrong version found
    31  RUN pip install pyparsing
    32  RUN python2.7 setup.py install --prefix="/home/user/python/"
    33  ENV PATH=$PATH:"/home/user/python/bin/"
    34  WORKDIR /home/user/tendermint-proof/
    35  
    36  ENTRYPOINT ["/home/user/tendermint-proof/check_proofs.sh"]
    37