Skip to content

Stealth browser automation for AI agents over MCP and the Chrome DevTools Protocol: navigation, network hooks, DOM extraction, and pixel-accurate UI cloning.

Fix Docker build breakage by removing `apt-key` usage for Chrome repo setup (#11)

Copilote37e0de0e5a3
diff --git a/Dockerfile b/Dockerfile
index 01c35ee..3eb5057 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,8 +13,9 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Install Google Chrome
-RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
- && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
+RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub \
+ | gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg \
+ && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y google-chrome-stable \
&& apt-get clean \
@@ -45,4 +46,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -s http://localhost:$PORT/mcp -o /dev/null || exit 1
# Start the MCP server with HTTP transport (reads PORT env var automatically)
-CMD ["python", "src/server.py", "--transport", "http", "--host", "0.0.0.0"]
\ No newline at end of file
+CMD ["python", "src/server.py", "--transport", "http", "--host", "0.0.0.0"]