From: Shuanglei Tao Date: Sat, 18 Aug 2018 01:39:06 +0000 (+0800) Subject: Dockerfile: add -DCMAKE_BUILD_TYPE=RELEASE X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=dc5f35896d478ead70e422b47f051b595b26a9c2;p=ttyd.git Dockerfile: add -DCMAKE_BUILD_TYPE=RELEASE --- 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