From 058b1478e00a33eda8ba623f0cf8f3ff16ff8f59 Mon Sep 17 00:00:00 2001 From: yibaiba <946100224@qq.com> Date: Tue, 1 Sep 2026 23:33:18 +0800 Subject: [PATCH] Revert "build(docker): drop unused glib typelibs and tzdata from runtime images" This reverts commit 5dfc77eea41061d182d7734831cf114d18581384. --- Dockerfile | 21 +-------------------- Dockerfile.github | 21 +-------------------- Dockerfile.release | 3 ++- Dockerfile.runtime | 19 ------------------- 4 files changed, 4 insertions(+), 60 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a727f48..b60466c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -106,26 +106,7 @@ RUN apk add --no-cache \ test -e /usr/lib/libopencore-amrwb.so.0 && \ test -e /usr/lib/libvo-amrwbenc.so.0 && \ test -e /usr/lib/libmp3lame.so.0 && \ - test -x /usr/libexec/qmi-proxy && \ - rm -rf /usr/lib/girepository-1.0 \ - /usr/lib/libgirepository-2.0.so* \ - /usr/libexec/gio-launch-desktop \ - /usr/bin/gapplication \ - /usr/bin/gdbus \ - /usr/bin/gi-compile-repository \ - /usr/bin/gi-decompile-typelib \ - /usr/bin/gi-inspect-typelib \ - /usr/bin/gio \ - /usr/bin/gio-querymodules \ - /usr/bin/glib-compile-schemas \ - /usr/bin/gsettings && \ - cp -L /usr/share/zoneinfo/Asia/Shanghai /tmp/Shanghai && \ - cp -L /usr/share/zoneinfo/UTC /tmp/UTC && \ - rm -rf /usr/share/zoneinfo && \ - mkdir -p /usr/share/zoneinfo/Asia && \ - mv /tmp/Shanghai /usr/share/zoneinfo/Asia/Shanghai && \ - mv /tmp/UTC /usr/share/zoneinfo/UTC && \ - ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + test -x /usr/libexec/qmi-proxy # 管理 HTTP、电话 HTTPS、WebRTC UDP mux EXPOSE 7575/tcp 7576/tcp 7580/udp diff --git a/Dockerfile.github b/Dockerfile.github index beeab56a..4d8829ae 100644 --- a/Dockerfile.github +++ b/Dockerfile.github @@ -105,26 +105,7 @@ RUN apk add --no-cache \ test -e /usr/lib/libopencore-amrwb.so.0 && \ test -e /usr/lib/libvo-amrwbenc.so.0 && \ test -e /usr/lib/libmp3lame.so.0 && \ - test -x /usr/libexec/qmi-proxy && \ - rm -rf /usr/lib/girepository-1.0 \ - /usr/lib/libgirepository-2.0.so* \ - /usr/libexec/gio-launch-desktop \ - /usr/bin/gapplication \ - /usr/bin/gdbus \ - /usr/bin/gi-compile-repository \ - /usr/bin/gi-decompile-typelib \ - /usr/bin/gi-inspect-typelib \ - /usr/bin/gio \ - /usr/bin/gio-querymodules \ - /usr/bin/glib-compile-schemas \ - /usr/bin/gsettings && \ - cp -L /usr/share/zoneinfo/Asia/Shanghai /tmp/Shanghai && \ - cp -L /usr/share/zoneinfo/UTC /tmp/UTC && \ - rm -rf /usr/share/zoneinfo && \ - mkdir -p /usr/share/zoneinfo/Asia && \ - mv /tmp/Shanghai /usr/share/zoneinfo/Asia/Shanghai && \ - mv /tmp/UTC /usr/share/zoneinfo/UTC && \ - ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + test -x /usr/libexec/qmi-proxy # 管理 HTTP、电话 HTTPS、WebRTC UDP mux EXPOSE 7575/tcp 7576/tcp 7580/udp diff --git a/Dockerfile.release b/Dockerfile.release index 9ee11f6e..67ec6c7e 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -13,7 +13,8 @@ LABEL org.opencontainers.image.title="HiDeck" \ org.opencontainers.image.created=${BUILDTIME} \ org.opencontainers.image.revision=${REVISION} -COPY --chmod=0755 dist/hideck_${VERSION}_linux_${TARGETARCH} /usr/local/bin/hideck +COPY dist/hideck_${VERSION}_linux_${TARGETARCH} /usr/local/bin/hideck +RUN chmod 0755 /usr/local/bin/hideck HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ CMD wget -q -T 3 -O /dev/null http://127.0.0.1:7575/ping || exit 1 diff --git a/Dockerfile.runtime b/Dockerfile.runtime index 4c81f0fe..aca674ff 100644 --- a/Dockerfile.runtime +++ b/Dockerfile.runtime @@ -22,25 +22,6 @@ RUN apk add --no-cache \ test -e /usr/lib/libvo-amrwbenc.so.0 && \ test -e /usr/lib/libmp3lame.so.0 && \ test -x /usr/libexec/qmi-proxy && \ - rm -rf /usr/lib/girepository-1.0 \ - /usr/lib/libgirepository-2.0.so* \ - /usr/libexec/gio-launch-desktop \ - /usr/bin/gapplication \ - /usr/bin/gdbus \ - /usr/bin/gi-compile-repository \ - /usr/bin/gi-decompile-typelib \ - /usr/bin/gi-inspect-typelib \ - /usr/bin/gio \ - /usr/bin/gio-querymodules \ - /usr/bin/glib-compile-schemas \ - /usr/bin/gsettings && \ - cp -L /usr/share/zoneinfo/Asia/Shanghai /tmp/Shanghai && \ - cp -L /usr/share/zoneinfo/UTC /tmp/UTC && \ - rm -rf /usr/share/zoneinfo && \ - mkdir -p /usr/share/zoneinfo/Asia && \ - mv /tmp/Shanghai /usr/share/zoneinfo/Asia/Shanghai && \ - mv /tmp/UTC /usr/share/zoneinfo/UTC && \ - ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ mkdir -p /app/config /app/data /app/logs EXPOSE 7575/tcp 7576/tcp 7580/udp