File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ RUN apt-get update -qq && \
1616 curl \
1717 netcat-traditional \
1818 chromium \
19- libyaml-dev
19+ libyaml-dev \
20+ fonts-liberation \
21+ && apt-get clean \
22+ && rm -rf /var/lib/apt/lists/*
2023
2124# Add Node, required for asset pipeline.
2225RUN curl -sL https://deb.nodesource.com/setup_22.x | bash - && \
Original file line number Diff line number Diff line change 88# https://github.com/Studiosity/grover
99
1010Grover . configure do |config |
11- # Common PDF options
12- config . options = {
11+ options = {
1312 format : 'A4' ,
1413 print_background : true ,
1514 prefer_css_page_size : false ,
1615 display_url : "https://#{ Rails . application . config . x . sofia_host } "
17-
1816 }
17+
18+ unless Rails . env . development?
19+ options [ :executable_path ] = '/usr/bin/chromium'
20+ options [ :launch_args ] = [ '--no-sandbox' , '--disable-setuid-sandbox' , '--disable-dev-shm-usage' ]
21+ end
22+
23+ config . options = options
1924end
You can’t perform that action at this time.
0 commit comments