From 8ebb57a7067f06f5ba35cc31974f7e798b7d9fdb Mon Sep 17 00:00:00 2001 From: nocci Date: Tue, 30 Dec 2025 17:27:28 +0000 Subject: [PATCH] Add missing Playwright deps and clear Firefox locks on start --- Dockerfile | 3 +++ docker-entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index a3dcbc9..cac91cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,9 @@ RUN apt-get update \ libgdk-pixbuf-2.0-0 \ libdbus-glib-1-2 \ libxcursor1 \ + libnss3 \ + libnspr4 \ + libgbm1 \ && apt-get autoremove -y \ && apt-get clean \ && rm -rf \ diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 870d4c9..b5f5863 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -15,6 +15,8 @@ rm -f /fgc/data/browser/SingletonLock 2>/dev/null || true # Firefox preferences are stored in $BROWSER_DIR/pref.js and can be overridden by a file user.js # Since this file has to be in the volume (data/browser), we can't do this in Dockerfile. mkdir -p /fgc/data/browser +# clean up stale firefox locks that can trigger "already running" +rm -f /fgc/data/browser/parent.lock /fgc/data/browser/lock /fgc/data/browser/.parentlock 2>/dev/null || true # fix for 'Incorrect response' after solving a captcha correctly - https://github.com/vogler/free-games-claimer/issues/261#issuecomment-1868385830 # Only write the prefs file when the volume is writable (container runs as non-root). if [ -w /fgc/data/browser ] && { [ ! -e /fgc/data/browser/user.js ] || [ -w /fgc/data/browser/user.js ] || rm -f /fgc/data/browser/user.js 2>/dev/null; }; then