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
|
2020-06-15 16:35:10 +02:00
|
|
|
ARG BUILD_ID
|
2021-05-28 19:11:47 +02:00
|
|
|
ARG CMAKE_ARGS
|
2022-01-20 21:38:11 +01:00
|
|
|
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} $CMAKE_ARGS && make -j4 || make -j1 VERBOSE=1
|
2018-02-12 20:11:41 +01:00
|
|
|
USER root
|
|
|
|
RUN make install
|