Run Chromium with unset env variables [SCI-9660] (#6606)

This commit is contained in:
Alex Kriuchykhin 2023-11-08 14:27:11 +01:00 committed by GitHub
parent b6ae5ad09c
commit 125e0fbbfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -76,7 +76,7 @@ RUN \
librsvg2-2 \
libvips42 \
graphviz \
chromium-driver \
chromium \
libfile-mimeinfo-perl && \
npm install -g yarn && \
yarn add puppeteer@npm:puppeteer-core && \

2
bin/chromium Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
env -i /usr/bin/chromium $@

View file

@ -3,7 +3,7 @@
Grover.configure do |config|
config.options = {
cache: false,
executable_path: '/usr/bin/chromium',
executable_path: './bin/chromium',
launch_args: ['--no-sandbox']
}
end