Dockerfile: add -DCMAKE_BUILD_TYPE=RELEASE

This commit is contained in:
Shuanglei Tao
2018-08-18 09:39:06 +08:00
parent a76c6b260f
commit dc5f35896d
2 changed files with 2 additions and 2 deletions

View File

@@ -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 \

View File

@@ -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