edit docker files, add skill of browser-use in the workdir

This commit is contained in:
Кобылкевич Фёдор 2026-03-26 22:08:01 +03:00
parent 2f74daa8a6
commit 7832c30cc0
12 changed files with 421 additions and 4 deletions

View file

@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail
export DISPLAY=:99
SCREEN_RESOLUTION="${SCREEN_RESOLUTION:-1920x1080x24}"
# Clean stale X lock/socket from previous crashed runs in the same container.
rm -f /tmp/.X99-lock
rm -f /tmp/.X11-unix/X99
Xvfb :99 -screen 0 "$SCREEN_RESOLUTION" -ac +extension RANDR &
fluxbox >/tmp/fluxbox.log 2>&1 &
x11vnc -display :99 -forever -shared -rfbport 5900 -nopw >/tmp/x11vnc.log 2>&1 &
websockify --web=/usr/share/novnc/ 6080 localhost:5900 >/tmp/novnc.log 2>&1 &
socat TCP-LISTEN:9223,fork,bind=0.0.0.0 TCP:127.0.0.1:9222 >/tmp/socat.log 2>&1 &
exec chromium \
--no-sandbox \
--disable-dev-shm-usage \
--disable-gpu \
--disable-setuid-sandbox \
--remote-debugging-address=0.0.0.0 \
--remote-debugging-port=9222 \
--user-data-dir=/tmp/chromium-profile \
--window-size=1920,1080 \
--no-first-run \
--no-default-browser-check \
about:blank >/tmp/chromium.log 2>&1