aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'client/Dockerfile')
-rw-r--r--client/Dockerfile18
1 files changed, 9 insertions, 9 deletions
diff --git a/client/Dockerfile b/client/Dockerfile
index a2408cf..ed5762f 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -20,13 +20,13 @@ COPY [".", "/tmp/src/"]
WORKDIR /tmp/build
-RUN cmake -G "Unix Makefiles" \
- -D CMAKE_BUILD_TYPE=RelWithDebInfo \
- -D ENABLE_TESTS=ON \
- /tmp/src && \
- cmake --build test && \
- ./test/unit_tests/unit_tests --log_level=all && \
- cmake --build client
-
-ENTRYPOINT ["./client/client"]
+RUN cmake -G "Unix Makefiles" \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D CMAKE_INSTALL_PREFIX=/usr/local \
+ -D ENABLE_TESTS=ON \
+ /tmp/src && \
+ cmake --build . --config Release --target install && \
+ /usr/local/bin/unit_tests --log_level=all
+
+ENTRYPOINT ["/usr/local/bin/client"]
CMD ["-c", "2 * 2"]