2018-03-22 18:11:39 +01:00
|
|
|
# See ../triqs/packaging for other options
|
|
|
|
FROM flatironinstitute/triqs:master-ubuntu-clang
|
2018-04-06 17:29:06 +02:00
|
|
|
ARG APPNAME
|
2019-07-31 18:13:28 +02:00
|
|
|
|
|
|
|
COPY requirements.txt /src/$APPNAME/requirements.txt
|
|
|
|
RUN pip install -r /src/$APPNAME/requirements.txt
|
|
|
|
|
2018-03-23 20:30:28 +01:00
|
|
|
COPY . $SRC/$APPNAME
|
|
|
|
WORKDIR $BUILD/$APPNAME
|
2019-08-28 17:11:49 +02:00
|
|
|
RUN chown -R build $SRC/$APPNAME .
|
2018-03-22 18:11:39 +01:00
|
|
|
USER build
|
2018-03-23 20:30:28 +01:00
|
|
|
ARG BUILD_DOC=0
|
2018-11-29 20:20:35 +01:00
|
|
|
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} -DBuild_Documentation=${BUILD_DOC} && make -j2 && make test CTEST_OUTPUT_ON_FAILURE=1
|
2018-03-22 18:11:39 +01:00
|
|
|
USER root
|
|
|
|
RUN make install
|