DEV: Set fixed playwright browsers path for test Docker image

This commit is contained in:
Alan Guo Xiang Tan 2025-05-10 06:29:59 +08:00
parent 3c2234830a
commit 2f6373372d
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ RUN cd /var/www/discourse && sudo -E -u discourse -H bundle exec rake plugin:ins
LOAD_PLUGINS=1 sudo -E -u discourse -H bundle exec rake plugin:install_all_gems &&\
sudo -E -u discourse -H bundle exec ruby script/install_minio_binaries.rb
ENV PLAYWRIGHT_BROWSERS_PATH /var/www/discourse/.playwright_browsers
RUN cd /var/www/discourse && \
pnpm playwright install --with-deps --no-shell chromium