dorie.dockerfile 873 Bytes
Newer Older
1 2
ARG DUNE_ENV_IMAGE=dorie/dune-env
FROM $DUNE_ENV_IMAGE
3 4 5
LABEL maintainer="lriedel@iup.uni-heidelberg.de"
# number of cores for parallel builds
ARG PROCNUM=1
6 7 8
# Compilers to be used
ARG CC=gcc
ARG CXX=g++
9 10 11

WORKDIR /opt/dune
ADD . /opt/dune/dorie/
12 13 14
RUN CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} -DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" \
    ./dune-common/bin/dunecontrol --only=dorie configure \
    && MAKE_FLAGS="-j ${PROCNUM}" \
Lukas Riedel's avatar
Lukas Riedel committed
15
        ./dune-common/bin/dunecontrol --only=dorie make dorie-rfg dorie \
16
    && ./dune-common/bin/dunecontrol --only=dorie exec \
17
        "rm build-cmake/dune/dorie/impl/libdorie-impl.a build-cmake/dune/dorie/impl/CMakeFiles/dorie-impl.dir/*.cc.o"
18 19 20
ENV PATH="/opt/dune/dorie/build-cmake/bin:${PATH}"
WORKDIR /sim
ENTRYPOINT ["/opt/dune/dorie/build-cmake/bin/dorie"]