lib/generators/dockerfile_generator.rb in dockerfile-rails-1.0.4 vs lib/generators/dockerfile_generator.rb in dockerfile-rails-1.0.5

- old
+ new

@@ -201,17 +201,22 @@ if using_puppeteer? packages += %w(curl gnupg) end + # charlock_holmes. Placed here as the library itself is + # libicu63 in buster, libicu67 in bullseye, libiclu72 in bookworm... + packages << "libicu-dev" if @gemfile.include? 'charlock_holmes' + packages.sort.uniq end def base_requirements requirements = [] requirements << 'nodejs' if using_execjs? requirements << 'chrome' if using_puppeteer? + requirements << "charlock_holmes" if @gemfile.include? 'charlock_holmes' requirements.join(' and ') end def build_packages # start with the essentials @@ -327,9 +332,10 @@ env << 'MALLOC_CONF="dirty_decay_ms:1000,narenas:2,background_thread:true"' end if using_puppeteer? env << 'GROVER_NO_SANDBOX="true"' if @gemfile.include? 'grover' + env << 'PUPPETEER_RUBY_NO_SANDBOX="1"' if @gemfile.include? 'puppeteer-ruby' env << 'PUPPETEER_EXECUTABLE_PATH="/usr/bin/google-chrome"' end env end