Explorar el Código

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

Prakash Ranade hace 5 años
padre
commit
36b85ea45d
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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