Files
Saurav Panda 3cdbce72a9 Fix the cdp sidecar and add an explicit key for the openai LLM route
Both paths were wired but had never been executed; running them found real bugs.

The compose sidecar could not work as written. Chrome ignores
--remote-debugging-address=0.0.0.0 and binds DevTools to 127.0.0.1 only
(confirmed in /proc/net/tcp: 0100007F:2406), so http://chromium:9222 was
refused from the agent container by hostname and by IP alike. A TCP forwarder
does not fix it either: browser-use adopts Chrome's advertised
webSocketDebuggerUrl verbatim (session.py), and Chrome always advertises
ws://127.0.0.1:9222, which would send the client to its own loopback. Sharing
the chromium container's network namespace makes both loopbacks the same one.
The suite now passes 3/3 through the sidecar at parity with the in-container
prewarmed browser.

The openai route had no way to supply a credential, so pointing it at OpenRouter
or Modal meant setting OPENAI_API_KEY to something that is not an OpenAI key.
BU_EVAL_LLM_API_KEY now carries it, and a base_url without any key fails loudly
instead of silently falling back to api.openai.com.
2026-08-22 14:29:28 -07:00
..
…

Docker Setup for Browser-Use

This directory contains the optimized Docker build system for browser-use, achieving < 30 second builds.

Quick Start

# Build base images (only needed once or when dependencies change)
./docker/build-base-images.sh

# Build browser-use
docker build -f Dockerfile.fast -t browseruse .

# Or use the standard Dockerfile (slower but self-contained)
docker build -t browseruse .

Files

  • Dockerfile - Standard self-contained build (~2 min)
  • Dockerfile.fast - Fast build using pre-built base images (~30 sec)
  • docker/ - Base image definitions and build script
    • base-images/system/ - Python + minimal system deps
    • base-images/chromium/ - Adds Chromium browser
    • base-images/python-deps/ - Adds Python dependencies
    • build-base-images.sh - Script to build all base images

Performance

Build Type Time
Standard Dockerfile ~2 minutes
Fast build (with base images) ~30 seconds
Rebuild after code change ~16 seconds