2018-03-22 18:11:39 +01:00
|
|
|
# See ../triqs/packaging for other options
|
2020-01-17 15:40:06 +01:00
|
|
|
FROM flatironinstitute/triqs:unstable-ubuntu-clang
|
2020-01-17 15:45:55 +01:00
|
|
|
ARG APPNAME=app4triqs
|
2019-07-31 18:13:28 +02:00
|
|
|
|
|
|
|
COPY requirements.txt /src/$APPNAME/requirements.txt
|
2020-05-16 19:04:43 +02:00
|
|
|
RUN pip3 install -r /src/$APPNAME/requirements.txt
|
2019-07-31 18:13:28 +02:00
|
|
|
|
2020-02-11 20:08:10 +01:00
|
|
|
COPY --chown=build . $SRC/$APPNAME
|
2018-03-23 20:30:28 +01:00
|
|
|
WORKDIR $BUILD/$APPNAME
|
2020-02-11 20:08:10 +01:00
|
|
|
RUN chown build .
|
2018-03-22 18:11:39 +01:00
|
|
|
USER build
|
2020-06-15 16:35:10 +02:00
|
|
|
ARG BUILD_ID
|
2021-05-28 19:11:47 +02:00
|
|
|
ARG CMAKE_ARGS
|
|
|
|
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} -DBuild_Deps=Always $CMAKE_ARGS && make -j2 || make -j1 VERBOSE=1
|
2018-03-22 18:11:39 +01:00
|
|
|
USER root
|
|
|
|
RUN make install
|