Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

docs(docker): clarify index.html → dashboard.html rename

Bosch49fdbda915ea
diff --git a/Dockerfile b/Dockerfile
index 350df365..acdc3acf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,9 +8,9 @@ COPY dashboard/ .
RUN bun run build
# Stage 2: Compile the Go binary.
-# Dashboard dist is embedded into the binary via Go's embed package.
-# The rename to dashboard.html avoids a conflict with the Go embed server's
-# own index route — the dashboard handler serves it explicitly.
+# Dashboard dist is embedded via Go's embed package.
+# Vite always outputs index.html; rename to dashboard.html so it doesn't
+# collide with http.FileServer's automatic index.html handling at /dashboard/.
FROM golang:1.26-alpine3.21 AS builder
RUN apk add --no-cache git
WORKDIR /build
diff --git a/scripts/build-dashboard.sh b/scripts/build-dashboard.sh
index 318ff8a9..f1de57b1 100755
--- a/scripts/build-dashboard.sh
+++ b/scripts/build-dashboard.sh
@@ -43,10 +43,10 @@ cd ..
rm -rf internal/dashboard/dashboard/assets/
rm -f internal/dashboard/dashboard/dashboard.html
-# Copy React build
+# Copy React build and rename entry HTML.
+# Vite always outputs index.html; Go's embed serves it as dashboard.html to
+# avoid http.FileServer's automatic index.html handling at /dashboard/.
cp -r dashboard/dist/* internal/dashboard/dashboard/
-
-# Rename index.html to dashboard.html (Go expects this)
mv internal/dashboard/dashboard/index.html internal/dashboard/dashboard/dashboard.html
echo "✅ Dashboard built: internal/dashboard/dashboard/"