FROM kdecommunity/basedevel RUN apt-get update && \ apt-get install libqt5svg5-dev libqt5xmlpatterns5-dev libkf5crash-dev \ libkf5completion-dev libkf5newstuff-dev libkf5texteditor-dev \ libkf5parts-dev libkf5pty-dev kdoctools-dev gettext -y RUN useradd -m -u 1000 devel #RUN apt-get install octave -y ARG backend ENV BACKEND $backend RUN apt-get install $backend -y COPY ./ /cantor WORKDIR /cantor/build RUN chown -R devel /cantor USER devel RUN cmake .. -DCMAKE_INSTALL_PREFIX=/cantor/usr RUN make -j 5 RUN make install ENV QT_PLUGIN_PATH=/cantor/usr/lib/x86_64-linux-gnu/plugins ENV XDG_DATA_DIRS=/cantor/usr/share ENV XDG_CONFIG_DIRS=/cantor/usr/etc/xdg CMD /cantor/usr/bin/cantor