mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Run Chromium with unset env variables [SCI-9660] (#6606)
This commit is contained in:
parent
b6ae5ad09c
commit
125e0fbbfe
3 changed files with 4 additions and 2 deletions
|
@ -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
2
bin/chromium
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
env -i /usr/bin/chromium $@
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue