diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index a7ebaf7b256e7a74e9956e7e4f8f66c7cd7ac407..83ec888e64b191ee63486b71bd988854fafd9573 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -20,16 +20,22 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.lis
 RUN apt-get update && apt-get install -y \
     nodejs \
     yarn \
-    chromium \
-    # libgbm1: newer chromium from puppeteer
-    libgbm1 \
-    firefox-esr \
     composer \
     php-zip \
+    php-curl \
     rsync \
     sudo \
     && rm -rf /var/lib/apt/lists/*
 
+# only get dependencies of chromium/firefox
+RUN apt-get update && apt-get install --no-install-recommends -y \
+    chromium \
+    firefox-esr \
+    && apt-get remove -y \
+    chromium \
+    firefox-esr \
+    && rm -rf /var/lib/apt/lists/*
+
 RUN useradd -u 1000 -ms /bin/bash user
 RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
 USER user
diff --git a/karma.conf.js b/karma.conf.js
index c28610ac7618778f80f61e8c8edd6386a97b92f4..c643b294092462bc8131b2eeff4980fe0b9e89ae 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -2,7 +2,7 @@ module.exports = async function (config) {
     const {installBrowsersForNpmInstall, registry} = require('playwright-core/lib/server');
     await installBrowsersForNpmInstall(['firefox', 'chromium']);
     process.env.FIREFOX_BIN = registry.findExecutable('firefox').executablePath();
-    process.env.CHROME_BIN = registry.findExecutable('chromium').executablePath();
+    process.env.CHROMIUM_BIN = registry.findExecutable('chromium').executablePath();
 
     config.set({
         basePath: 'dist',