From b38fc8a11e7dd7676059ddbfb14fd4ad5b406fac Mon Sep 17 00:00:00 2001 From: nitin sanghi Date: Fri, 10 Jan 2025 13:06:44 +0530 Subject: [PATCH] Remove cache and bundler after build to save size Signed-off-by: nitin sanghi --- habitat/plan.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/habitat/plan.sh b/habitat/plan.sh index d184e3bc7..0c2284099 100644 --- a/habitat/plan.sh +++ b/habitat/plan.sh @@ -57,6 +57,8 @@ do_install() { gem install ohai-*.gem --no-document set_runtime_env "GEM_PATH" "${pkg_prefix}/vendor" wrap_ruby_bin + rm -rf $GEM_PATH/bundler + rm -rf $GEM_PATH/cache } wrap_ruby_bin() { local bin="$pkg_prefix/bin/$pkg_name"