From fd3e3ca472aae9f1727bf3d1e18d3aa7ef70d4e6 Mon Sep 17 00:00:00 2001 From: Junwang Zhao Date: Wed, 6 Mar 2024 15:06:47 +0800 Subject: [PATCH] add missing busybox install command (#3029) before this patch, when execute `ps` inside container, we see the following error: postgres@a97c9e438eae:~$ ps bash: ps: command not found Signed-off-by: Zhao Junwang --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d4fddfea..df8c59c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -125,6 +125,8 @@ RUN if [ "$COMPRESS" = "true" ]; then \ && /bin/busybox sh -c "(find $save_dirs -not -type d && cat /exclude /exclude && echo exclude) | sort | uniq -u | xargs /bin/busybox rm" \ && /bin/busybox --install -s \ && /bin/busybox sh -c "find $save_dirs -type d -depth -exec rmdir -p {} \; 2> /dev/null"; \ + else \ + /bin/busybox --install -s; \ fi FROM scratch