This commit is contained in:
Chris Tate
2026-01-11 09:54:51 -06:00
parent 82079d6d20
commit 36b1af29f6
7 changed files with 253 additions and 33 deletions
+23 -2
View File
@@ -1,11 +1,11 @@
# Docker Compose for building agent-browser
# Usage: docker compose -f docker/docker-compose.yml run build-linux
# docker compose -f docker/docker-compose.yml run build-windows
#
# Note: macOS builds should be done natively on macOS for compatibility.
# Windows uses Node.js fallback (Unix sockets not supported).
services:
# Build for Linux platforms only (macOS should be built natively)
# Build for Linux platforms
build-linux:
build:
context: ..
@@ -35,6 +35,27 @@ services:
ls -la /output/agent-browser-linux-*
'
# Build for Windows
build-windows:
build:
context: ..
dockerfile: docker/Dockerfile.build
volumes:
- ../cli:/build
- ../bin:/output
command: |
-c '
set -e
echo "Building for Windows x64..."
cargo build --release --target x86_64-pc-windows-gnu
cp /build/target/x86_64-pc-windows-gnu/release/agent-browser.exe /output/agent-browser-win32-x64.exe
echo ""
echo "✓ Windows build completed!"
ls -la /output/agent-browser-win32-*
'
# Build for a single target (override with TARGET env var)
build-single:
build: