Add missing Playwright deps and clear Firefox locks on start
This commit is contained in:
parent
949206dbf2
commit
8ebb57a706
2 changed files with 5 additions and 0 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue