From dc5f35896d478ead70e422b47f051b595b26a9c2 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 18 Aug 2018 09:39:06 +0800 Subject: [PATCH] Dockerfile: add -DCMAKE_BUILD_TYPE=RELEASE --- Dockerfile | 2 +- Dockerfile-static | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7fbafe1..73b4e3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN apt-get update \ vim-common \ && git clone --depth=1 https://github.com/tsl0922/ttyd.git /tmp/ttyd \ && cd /tmp/ttyd && mkdir build && cd build \ - && cmake .. \ + && cmake -DCMAKE_BUILD_TYPE=RELEASE .. \ && make \ && make install \ && apt-get remove -y --purge \ diff --git a/Dockerfile-static b/Dockerfile-static index deb12c2..f46f4e4 100644 --- a/Dockerfile-static +++ b/Dockerfile-static @@ -18,4 +18,4 @@ RUN curl -sLo- https://s3.amazonaws.com/json-c_releases/releases/json-c-0.12.1.t RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git \ && cd ttyd && sed -i '5s;^;\nSET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")\nSET(CMAKE_EXE_LINKER_FLAGS "-static")\n;' CMakeLists.txt \ - && cmake . && make install && cd .. && rm -rf ttyd + && cmake -DCMAKE_BUILD_TYPE=RELEASE . && make install && cd .. && rm -rf ttyd -- 2.43.4