build: 添加无头浏览器dockerfile

This commit is contained in:
lixiangwuxian
2024-10-13 14:41:08 +08:00
parent 1495ac516b
commit c0cfacbd33
3 changed files with 23 additions and 0 deletions

13
docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
services:
headless-shell:
build:
context: .
dockerfile: Dockerfile
ports:
- "9222:9222"
command: >
--disable-gpu
--no-sandbox
--remote-debugging-address=0.0.0.0
--remote-debugging-port=9222
restart: unless-stopped