From 656b1ce643c1d6ecebc4f805bf77514d27a12c10 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Tue, 6 Oct 2026 14:29:28 -0400 Subject: [PATCH] Set FERRUM_CHROME_DOCKERIZE so Cuprite suites run as root Assisted-by: Claude Code:claude-opus-5-5 Claude-Session: https://claude.ai/code/session_01QetPdWGkSfWsXPCum4FQax --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3a2060b..6962240 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,3 +15,8 @@ RUN apt-get update -qq \ libvips42t64 libjpeg-turbo8 libpng16-16t64 libxrender1 libxext6 libfontconfig1 \ shellcheck \ && rm -rf /var/lib/apt/lists/* + +# Jobs run as root, and Chrome won't start as root without --no-sandbox. Rails 8.1's +# `driven_by :cuprite` drops an app's own browser_options, so have Ferrum add the +# flag itself for every Cuprite/Ferrum suite. +ENV FERRUM_CHROME_DOCKERIZE=true