Add missing Playwright deps and clear Firefox locks on start
All checks were successful
build-and-push / lint (push) Successful in 4s
build-and-push / sonar (push) Successful in 12s
build-and-push / docker (push) Successful in 1m10s

This commit is contained in:
nocci 2025-12-30 17:27:28 +00:00
parent 949206dbf2
commit 8ebb57a706
2 changed files with 5 additions and 0 deletions

View file

@ -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 \

View file

@ -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