mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-02-06 01:54:24 +01:00
Dockerfile: add -DCMAKE_BUILD_TYPE=RELEASE
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user