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

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

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

WORKDIR /cloud-sat/
RUN make -j 16