From 6aac08009254909aab3e0359f3ad7ab4e87a91e9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Mar 2021 14:57:55 +0300 Subject: add `make install`, `make test`, etc. Tests can be called using CTest now. --- client/Dockerfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'client') diff --git a/client/Dockerfile b/client/Dockerfile index c2969ea..2d6e1c2 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -8,22 +8,16 @@ FROM base AS builder ENV src_dir=/usr/src/math-server COPY [".", "$src_dir"] -RUN build_deps='boost-dev cmake g++ make python3' && \ +RUN build_deps='bash boost-dev cmake g++ make python3' && \ apk add --no-cache $build_deps && \ - cd -- "$src_dir/cmake" && \ - python3 -m project.cmake.build \ - --install /opt/math-server \ - --configuration Release \ - -- \ - "$src_dir" \ - -D MATH_SERVER_TESTS=ON \ - -D Boost_USE_STATIC_LIBS=OFF + cd -- "$src_dir" && \ + make install CONFIGURATION=Release CMAKE_FLAGS='-D Boost_USE_STATIC_LIBS=OFF' FROM base LABEL maintainer="Egor Tensin " -COPY --from=builder ["/opt/math-server", "/opt/math-server"] +COPY --from=builder ["/usr/src/math-server/.build/install", "/opt/math-server"] RUN runtime_deps='boost-filesystem boost-program_options boost-regex boost-unit_test_framework libstdc++' && \ apk add $runtime_deps && \ -- cgit v1.2.3