update dockerfile.
Some checks failed
Deploy Docker Images / Build dockerfile and Server deploy (push) Has been cancelled

This commit is contained in:
amass 2025-01-19 15:32:08 +08:00
parent acf951a07f
commit d4afa1929a

View File

@ -5,8 +5,10 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV BOOST_VERSION=1_86_0
ENV QT_VERSION=6.8.1
ENV CODE_VERSION=4.96.2
ENV LIBDATACHANNEL_VERSION=0.22.4
ENV WT_VERSION=4.11.1
ENV NNG_VERSION=1.10
ENV TCPING_VERSION=2.7.0
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources \
&& apt update \
@ -118,12 +120,12 @@ RUN cd /root \
&& rm -fr /root/wt-${WT_VERSION}*
RUN cd /root \
&& git clone --recursive --depth 1 -b v0.22.3 https://github.com/paullouisageneau/libdatachannel.git \
&& git clone --recursive --depth 1 -b v${LIBDATACHANNEL_VERSION} https://github.com/paullouisageneau/libdatachannel.git \
&& cd libdatachannel \
&& cmake -G Ninja -B build -S . -DUSE_GNUTLS=0 -DUSE_NICE=0 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/Libraries/libdatachannel-0.22.3 \
&& cmake -G Ninja -B build -S . -DUSE_GNUTLS=0 -DUSE_NICE=0 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/Libraries/libdatachannel-${LIBDATACHANNEL_VERSION} \
&& cmake --build build --target all \
&& cmake --install build \
&& rm -fr /root/libdatachannel-0.22.3*
&& rm -fr /root/libdatachannel*
RUN cd /root \
&& wget https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.0/libjpeg-turbo-3.1.0.tar.gz \
@ -134,7 +136,7 @@ RUN cd /root \
&& cmake --install build \
&& rm -fr /root/libjpeg-turbo-3.1.0*
RUN wget https://github.com/pouriyajamshidi/tcping/releases/download/v2.6.0/tcping_Linux.tar.gz -O /tmp/tcping_Linux.tar.gz \
RUN wget https://github.com/pouriyajamshidi/tcping/releases/download/v${TCPING_VERSION}/tcping_Linux.tar.gz -O /tmp/tcping_Linux.tar.gz \
&& tar -xzf /tmp/tcping_Linux.tar.gz -C /usr/bin \
&& rm /tmp/tcping_Linux.tar.gz