FROM numlibs AS buildqpms USER qpmsbuild ENV LD_LIBRARY_PATH /home/qpmsbuild/.local/lib ENV LIBRARY_PATH /home/qpmsbuild/.local/lib ENV C_INCLUDE_PATH /home/qpmsbuild/.local/include RUN cd && git clone --depth 1 https://repo.or.cz/qpms.git \ && cd qpms && git submodule init && git submodule update RUN cd ~/qpms && cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local . \ && make \ && make install RUN cd ~/qpms && python3 setup.py install --user