FIX: compress brotli assets from web upgrader

FIX: compress brotli assets from web upgrader

Due to a logic bug we forgot to carry over compress brotli.

This was not an issue for years cause if a brotli asset was absent we would simply serve the non brotli version.

Due to recent changes this is not longer the case

A follow up on core will remove the COMPRESS_BROTLI flag altogether

diff --git a/lib/docker_manager/upgrader.rb b/lib/docker_manager/upgrader.rb
index 88c4dd3..194c13b 100644
--- a/lib/docker_manager/upgrader.rb
+++ b/lib/docker_manager/upgrader.rb
@@ -123,11 +123,19 @@ class DockerManager::Upgrader
     log "$ #{cmd}"
     msg = ""
 
+    allowed_env = %w{
+      PWD
+      HOME
+      SHELL
+      PATH
+      COMPRESS_BROTLI
+    }
+
     clear_env = Hash[*ENV.map { |k, v| [k, nil] }
       .reject { |k, v|
-                       ["PWD", "HOME", "SHELL", "PATH"].include?(k) ||
-                         k =~ /^DISCOURSE_/
-                     }
+        allowed_env.include?(k) ||
+        k =~ /^DISCOURSE_/
+      }
       .flatten]
 
     clear_env["RAILS_ENV"] = "production"

GitHub sha: ada600b8