From c622ee5b2407301bfaa3a10b0d929a6696b00c27 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 12 May 2025 11:11:35 +0200 Subject: [PATCH] Separate dependencies and browser installation (#956) - deps as root - browser as discourse user --- image/discourse_test/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index e189a4e..1ab39ab 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -38,6 +38,9 @@ RUN cd /var/www/discourse && sudo -E -u discourse -H bundle exec rake plugin:ins sudo -E -u discourse -H bundle exec ruby script/install_minio_binaries.rb RUN cd /var/www/discourse && \ - pnpm playwright install --with-deps --no-shell chromium + pnpm playwright install ffmpeg + +RUN cd /var/www/discourse && \ + sudo -E -u discourse -H pnpm playwright install --no-shell chromium ENTRYPOINT ["sudo", "-E", "-u", "discourse", "-H", "ruby", "script/docker_test.rb"]