From 1a3e21fcf2564564f8a85b414949f9bf3ca4879d Mon Sep 17 00:00:00 2001 From: YuCat <66810215+YuCat-OVO@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:35:44 +0800 Subject: [PATCH] Fix trusted.gpg --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7dd91ef..4a22813 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,16 +22,15 @@ RUN \ curl -o \ /kclient/public/icon.png \ https://raw.githubusercontent.com/YuCat-OVO/BaiduNetdisk-Docker/master/docs/baidunetdisk.png && \ + echo "**** fix trusted.gpg ****" && \ + mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/docker.gpg && \ echo "**** install runtime packages ****" && \ apt-get update && \ + apt-get dist-upgrade -y && \ apt-get install -y --no-install-recommends \ wget \ fonts-wqy-microhei \ fonts-wqy-zenhei \ - libgtk-3-0 \ - libnotify4 \ - libatspi2.0-0 \ - libsecret-1-0 \ desktop-file-utils && \ echo "**** install BaiduNetdisk ****" && \ if [ -z ${BAIDUNETDISK_VERSION+x} ]; then \ @@ -43,6 +42,11 @@ RUN \ curl -o \ /tmp/baidunetdisk.deb -L \ "$BAIDUNETDISK_URL" && \ + for i in \ + $(dpkg -I /tmp/baidunetdisk.deb | grep "Depends" | cut -c11- | awk -F ', ' '{ for(i=1; i<=NF; i++) print $i }'); \ + do \ + apt-get install -y --no-install-recommends ${i}; \ + done && \ dpkg -i /tmp/baidunetdisk.deb && \ echo "**** cleanup ****" && \ apt-get clean && \