FROM satcomp-infrastructure:common
USER root
#  Install required softwares

RUN  sed -i s@/archive.ubuntu.com/@/mirrors.bfsu.edu.cn/@g /etc/apt/sources.list
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install -y vim cmake build-essential zlib1g-dev libopenmpi-dev wget unzip python3 gfortran curl
RUN apt install -y libboost-all-dev

WORKDIR /
RUN git clone https://gitea.yuhangq.com:8/YuhangQ/cloud-sat.git

WORKDIR /cloud-sat/m4ri-20140914
RUN make clean
RUN ./configure
RUN make -j

WORKDIR /cloud-sat/lstech_maple
RUN make clean
RUN make -j

WORKDIR /cloud-sat/kissat-inc
RUN make clean
RUN ./configure
RUN make -j

WORKDIR /cloud-sat/
RUN make clean
RUN make -j