run as root

This commit is contained in:
Joffrey JAFFEUX 2025-05-07 15:04:02 +02:00
parent a59870a97d
commit b182b7d82f
1 changed files with 2 additions and 3 deletions

View File

@ -37,8 +37,7 @@ 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
USER discourse
RUN cd /var/www/discourse &&\
sudo -E -u discourse -H /bin/bash -c 'CI=1 pnpm playwright install --with-deps --no-shell chromium'
RUN cd /var/www/discourse && \
pnpm playwright install --with-deps --no-shell chromium
ENTRYPOINT ["sudo", "-E", "-u", "discourse", "-H", "ruby", "script/docker_test.rb"]