Skip to content

Commit 27c7caa

Browse files
committed
simplify docker installation
1 parent 30f1219 commit 27c7caa

File tree

4 files changed

+7
-23
lines changed

4 files changed

+7
-23
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ RUN mkdir -p $PLAYWRIGHT_BROWSERS_PATH
8181
# Install recommended: Google Chrome (instead of just Chromium for better undetectability)
8282
# The 'patchright install chrome' command might download and place it.
8383
# The '--with-deps' equivalent for patchright install is to run 'patchright install-deps chrome' after.
84-
RUN patchright install chrome --with-deps
84+
# RUN patchright install chrome --with-deps
8585

8686
# Alternative: Install Chromium if Google Chrome is problematic in certain environments
8787
RUN patchright install chromium --with-deps

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ services:
4343
- BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info}
4444

4545
# Browser Settings
46-
- BROWSER_PATH=/usr/bin/google-chrome
47-
- BROWSER_USER_DATA=/app/data/chrome_data
46+
- BROWSER_PATH=
47+
- BROWSER_USER_DATA=
4848
- BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222}
49-
- BROWSER_DEBUGGING_HOST=0.0.0.0
50-
- USE_OWN_BROWSER=true
49+
- BROWSER_DEBUGGING_HOST=localhost
50+
- USE_OWN_BROWSER=false
5151
- KEEP_BROWSER_OPEN=true
5252
- BROWSER_CDP=${BROWSER_CDP:-} # e.g., http://localhost:9222
5353

src/webui/components/browser_settings_tab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def create_browser_settings_tab(webui_manager: WebuiManager):
5252
with gr.Row():
5353
use_own_browser = gr.Checkbox(
5454
label="Use Own Browser",
55-
value=os.getenv("USE_OWN_BROWSER", False),
55+
value=False,
5656
info="Use your existing browser instance",
5757
interactive=True
5858
)

supervisord.conf

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,6 @@ startretries=5
6565
startsecs=3
6666
depends_on=x11vnc
6767

68-
[program:persistent_browser]
69-
environment=START_URL="data:text/html,<html><body><h1>Browser Ready</h1></body></html>",BROWSER_USER_DATA="/app/data/chrome_data",BROWSER_DEBUGGING_PORT="%(ENV_BROWSER_DEBUGGING_PORT)s",BROWSER_DEBUGGING_HOST="%(ENV_BROWSER_DEBUGGING_HOST)s"
70-
command=bash -c "mkdir -p %(ENV_BROWSER_USER_DATA)s && sleep 8 && $(/usr/bin/google-chrome || find $PLAYWRIGHT_BROWSERS_PATH/chromium-*/chrome-linux -name chrome) --user-data-dir=%(ENV_BROWSER_USER_DATA)s --window-position=0,0 --window-size=%(ENV_RESOLUTION_WIDTH)s,%(ENV_RESOLUTION_HEIGHT)s --start-maximized --no-sandbox --disable-dev-shm-usage --disable-gpu --no-first-run --no-default-browser-check --no-experiments --ignore-certificate-errors --remote-debugging-port=%(ENV_BROWSER_DEBUGGING_PORT)s --remote-debugging-address=%(ENV_BROWSER_DEBUGGING_HOST)s --enable-features=NetworkService,NetworkServiceInProcess --disable-features=ImprovedCookieControls \"$START_URL\""
71-
autorestart=true
72-
stdout_logfile=/dev/stdout
73-
stdout_logfile_maxbytes=0
74-
stderr_logfile=/dev/stderr
75-
stderr_logfile_maxbytes=0
76-
priority=350
77-
startretries=5
78-
startsecs=10
79-
stopsignal=TERM
80-
stopwaitsecs=15
81-
depends_on=novnc
82-
8368
[program:webui]
8469
command=python webui.py --ip 0.0.0.0 --port 7788
8570
directory=/app
@@ -92,5 +77,4 @@ priority=400
9277
startretries=3
9378
startsecs=3
9479
stopsignal=TERM
95-
stopwaitsecs=10
96-
depends_on=persistent_browser
80+
stopwaitsecs=10

0 commit comments

Comments
 (0)