aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/client/Dockerfile
blob: 9b2ab514d55519588bf8d723bf06a4e007f8a030 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                               

                                                    



                                      

                                      
 
                        
 

                      






                                                

                                    
                   
# To build, run from the top-level directory:
# docker build -f client/Dockerfile -t egortensin/math-client .

FROM debian

LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"

# Don't prompt:
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update -yq \
    && apt-get install -yq --no-install-recommends \
        build-essential              \
        cmake                        \
        libboost-filesystem-dev      \
        libboost-program-options-dev \
        libboost-test-dev            \
        python3

ENV src_dir=/usr/src/app

COPY [".", "$src_dir"]

RUN "$src_dir/cmake/build/build.py" \
        --src "$src_dir"            \
        --install /usr/local        \
        --clean                     \
        --configuration Release     \
        -- -DENABLE_TESTS=ON        \
    && /usr/local/bin/unit_tests --log_level=all

ENTRYPOINT ["/usr/local/bin/client"]
CMD ["-c", "2 * 2"]