FROM commondeps AS buildopenblas USER qpmsbuild RUN cd && git clone --depth 1 https://github.com/xianyi/OpenBLAS.git \ && cd OpenBLAS && make \ && make install PREFIX=$HOME/.local/ \ && make clean \ && cd .. && rm -rf OpenBLAS FROM buildopenblas AS numlibs USER qpmsbuild RUN cd && wget https://ftp.gnu.org/gnu/gsl/gsl-latest.tar.gz \ && tar xf gsl-latest.tar.gz \ && cd $( tar tf gsl-latest.tar.gz | head -n 1 ) \ && ./configure --prefix=$HOME/.local \ && make && make install && make clean \ && cd .. && rm -rf $OLDPWD gsl-latest.tar.gz