From 44c552b23f19e0c710179dd930e6aa948366ae94 Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Sat, 4 Nov 2023 21:55:37 +0800 Subject: [PATCH] rm -rf /rootfs/bin /rootfs/sbin; --- compile/build-alpine/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/build-alpine/Dockerfile b/compile/build-alpine/Dockerfile index 494cc0ba..8e930b92 100644 --- a/compile/build-alpine/Dockerfile +++ b/compile/build-alpine/Dockerfile @@ -161,7 +161,7 @@ COPY --from=tiger ${STATIC} /rootfs${STATIC} COPY --from=xrdp ${STATIC} /rootfs${STATIC} # clear lib,share/man; create links -RUN mkdir -p /rootfs/bin /rootfs/sbin; \ +RUN rm -rf /rootfs/bin /rootfs/sbin; mkdir -p /rootfs/bin /rootfs/sbin; \ find /rootfs/usr/local/static -type d |egrep "/share/man$|xrdp/lib$" | \ while read one; do du -sh $one; rm -rf $one; done; \ \