From 877c1783c38ab95bc5e62dc5f4763e3c9a317d61 Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Tue, 15 Aug 2023 22:55:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20readlink=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=20libltdl7=20=E5=BA=93=E9=81=97=E6=BC=8F?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d9e6f13..2ed566b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,9 +92,10 @@ RUN set -eux; \ find /usr/local/${APP_NAME} -type f -executable -exec ldd '{}' ';' | \ awk '/=>/ { print $(NF-1) }' | \ sort -u | \ + xargs -r readlink -f | \ xargs -r dpkg-query --search 2>/dev/null | \ cut -d: -f1 | \ - sort -u >/usr/local/${APP_NAME}/runDeps; + sort -u >>/usr/local/${APP_NAME}/runDeps; # 1. 生成镜像 ===================================================================== FROM --platform=${TARGETPLATFORM:-linux/amd64} ${REGISTRY_URL}colovu/debian:12