Browse Source

HUE-9272 [core] Reduce Hue docker image size (#1106)

Prakash Ranade 5 năm trước cách đây
mục cha
commit
36b85ea45d
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      tools/container/build.sh

+ 4 - 0
tools/container/build.sh

@@ -81,6 +81,10 @@ docker_hue_build() {
   cp -a $BUILD_DIR/hue $HUE_DIR
   rm -f $HUE_DIR/hue/desktop/conf/*
 
+  # Reduce Hue container size
+  rm -rf $HUE_DIR/hue/node_modules
+  rm -rf $HUE_DIR/hue/desktop/core/ext-eggs
+
   for f in $(find $HUE_DIR/supervisor-files -name "*_template"); do
     subst_var $f
   done