Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.11-slim

RUN apt-get update && apt-get install -y \
chromium \
chromium-driver \
xvfb \
wget \
unzip \
curl \
gnupg \
&& rm -rf /var/lib/apt/lists/*

ENV CHROME_BIN=/usr/bin/chromium \
CHROMEDRIVER_PATH=/usr/bin/chromedriver

WORKDIR /app

COPY setup.sh setup.sh
COPY run-steel-browser.sh run-steel-browser.sh
COPY agent.py agent.py

RUN chmod +x setup.sh run-steel-browser.sh

ENTRYPOINT ["./run-steel-browser.sh"]
22 changes: 22 additions & 0 deletions src/clawbench/runtime/harnesses/steel-browser/run-steel-browser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail

: "${CLAW_TASK:?Missing CLAW_TASK}"
: "${CLAW_START_URL:?Missing CLAW_START_URL}"
: "${CLAW_OUTPUT_DIR:?Missing CLAW_OUTPUT_DIR}"

mkdir -p "$CLAW_OUTPUT_DIR"

XVFB_DISPLAY=${XVFB_DISPLAY:-99}
Xvfb ":$XVFB_DISPLAY" -screen 0 1280x1024x24 &
XVFB_PID=$!
export DISPLAY=":$XVFB_DISPLAY"

cleanup() {
kill "$XVFB_PID" 2>/dev/null || true
}
trap cleanup EXIT

cd "$(dirname "$0")"

python agent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -e
pip install steel-browser openai beautifulsoup4 lxml