Skip to content

Commit

Permalink
Remove cache and bundler after build to save size
Browse files Browse the repository at this point in the history
Signed-off-by: nitin sanghi <nsanghi@progress.com>
  • Loading branch information
sanghinitin committed Jan 10, 2025
1 parent 02790bc commit b38fc8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b38fc8a

Please sign in to comment.