From d82e533a4becd6a6a9f3d5e8051a0be3b9db8a49 Mon Sep 17 00:00:00 2001 From: Hoang Pham Date: Tue, 11 Nov 2025 17:35:07 +0700 Subject: [PATCH] fix whiteboard recording chrome Signed-off-by: Hoang Pham --- Containers/whiteboard/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Containers/whiteboard/Dockerfile b/Containers/whiteboard/Dockerfile index 90aa72f2..c862c674 100644 --- a/Containers/whiteboard/Dockerfile +++ b/Containers/whiteboard/Dockerfile @@ -6,7 +6,16 @@ USER root RUN set -ex; \ apk upgrade --no-cache -a; \ apk add --no-cache bash; \ - chmod 777 -R /tmp + chmod 777 -R /tmp; \ + if [ -f /usr/lib/chromium/chrome_crashpad_handler ]; then \ + rm -f /usr/lib/chromium/chrome_crashpad_handler.real; \ + mv /usr/lib/chromium/chrome_crashpad_handler /usr/lib/chromium/chrome_crashpad_handler.real; \ + cat <<'EOF' >/usr/lib/chromium/chrome_crashpad_handler; \ +#!/bin/sh +exec /usr/lib/chromium/chrome_crashpad_handler.real --no-periodic-tasks --database="${CRASHPAD_DATABASE:-/tmp/chrome-crashpad}" "$@" +EOF + chmod +x /usr/lib/chromium/chrome_crashpad_handler; \ + fi USER 65534 COPY --chmod=775 start.sh /start.sh