From ec8bcff907b8580071636c8720e9f31111a3e289 Mon Sep 17 00:00:00 2001 From: amass Date: Thu, 19 Dec 2024 23:54:10 +0800 Subject: [PATCH] add coturn --- Dockerfiles/ubuntu2404.dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Dockerfiles/ubuntu2404.dockerfile b/Dockerfiles/ubuntu2404.dockerfile index 57993cd..bebae4b 100644 --- a/Dockerfiles/ubuntu2404.dockerfile +++ b/Dockerfiles/ubuntu2404.dockerfile @@ -129,6 +129,24 @@ RUN wget https://github.com/pouriyajamshidi/tcping/releases/download/v2.6.0/tcpi && tar -xzf /tmp/tcping_Linux.tar.gz -C /usr/bin \ && rm /tmp/tcping_Linux.tar.gz +RUN cd /root \ + && wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz \ + && tar -xvf libevent-2.1.12-stable.tar.gz \ + && cd libevent-2.1.12-stable \ + && cmake -G Ninja -B build -S . -DCMAKE_INSTALL_PREFIX=/opt/Libraries/libevent-2.1.12 -DEVENT__LIBRARY_TYPE=STATIC \ + && cmake --build build --target all \ + && cmake --install build \ + && rm -fr /root/libevent-2.1.12* + +RUN cd /root \ + && wget https://github.com/coturn/coturn/archive/refs/tags/4.6.3.tar.gz -O coturn-4.6.3.tar.gz \ + && tar xvf coturn-4.6.3.tar.gz \ + && cd coturn-4.6.3 \ + && cmake -G Ninja -B build -S . -DCMAKE_INSTALL_PREFIX=/opt/Libraries/coturn-4.6.3 -DLibevent_DIR=/opt/Libraries/libevent-2.1.12/lib/cmake/libevent \ + && cmake --build build --target all \ + && cmake --install build \ + && rm -fr /root/coturn-4.6.3* + RUN cd /root \ && git clone --depth=1 --recursive https://github.com/ZLMediaKit/ZLMediaKit.git \ && cd /root/ZLMediaKit \