3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-29 16:34:53 +02:00
dft_tools/Dockerfile

16 lines
479 B
Docker

# See ../triqs/packaging for other options
FROM flatironinstitute/triqs:unstable-ubuntu-clang
ARG APPNAME
COPY requirements.txt /src/$APPNAME/requirements.txt
RUN pip install -r /src/$APPNAME/requirements.txt
COPY . $SRC/$APPNAME
WORKDIR $BUILD/$APPNAME
RUN chown -R build $SRC/$APPNAME .
USER build
ARG BUILD_DOC=0
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} -DBuild_Documentation=${BUILD_DOC} && make -j2 && make test CTEST_OUTPUT_ON_FAILURE=1
USER root
RUN make install