diff --git a/src/xrow/eZCluster/Resources/environment.php b/src/xrow/eZCluster/Resources/environment.php index 59de104..18a09da 100644 --- a/src/xrow/eZCluster/Resources/environment.php +++ b/src/xrow/eZCluster/Resources/environment.php @@ -475,9 +475,12 @@ public function setup() $fs->remove( $this->dir . ".new" ); } - # Clear composer cache to save some space when building a Docker image + # Clear composer and npm cache to save some space when building a Docker image if(file_exists("/.dockerenv")) { - $this->run("composer clear-cache"); + if(file_exists("/usr/bin/npm")) { + $this->run("npm cache clear", $this->parameters); + } + $this->run("composer clear-cache", $this->parameters); } }