2018-02-12 20:11:41 +01:00
|
|
|
# See ../triqs/packaging for other options
|
2020-06-10 17:45:53 +02:00
|
|
|
FROM flatironinstitute/triqs:unstable-ubuntu-clang
|
|
|
|
ARG APPNAME=triqs_dft_tools
|
2018-02-12 20:11:41 +01:00
|
|
|
|
2020-06-10 17:45:53 +02:00
|
|
|
COPY requirements.txt /src/$APPNAME/requirements.txt
|
|
|
|
RUN pip3 install -r /src/$APPNAME/requirements.txt
|
|
|
|
|
|
|
|
COPY --chown=build . $SRC/$APPNAME
|
2018-03-23 20:35:56 +01:00
|
|
|
WORKDIR $BUILD/$APPNAME
|
2018-02-12 20:11:41 +01:00
|
|
|
RUN chown build .
|
|
|
|
USER build
|
2018-03-23 20:35:56 +01:00
|
|
|
ARG BUILD_DOC=0
|
2020-06-10 17:45:53 +02:00
|
|
|
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} -DBuild_Documentation=${BUILD_DOC} && make -j2
|
2018-02-12 20:11:41 +01:00
|
|
|
USER root
|
|
|
|
RUN make install
|