High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: use Alpine + Chromium for e2e Docker (matches main Dockerfile)
Boscha33362023f96
diff --git a/tests/e2e/Dockerfile.pinchtab b/tests/e2e/Dockerfile.pinchtabindex f5708503..b77a7907 100644--- a/tests/e2e/Dockerfile.pinchtab+++ b/tests/e2e/Dockerfile.pinchtab@@ -1,35 +1,46 @@# Build stage-FROM golang:1.26-bookworm AS builder--WORKDIR /app+FROM golang:1.26-alpine AS builder+RUN apk add --no-cache git+WORKDIR /buildCOPY go.mod go.sum ./RUN go mod download-COPY . .-RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o pinchtab ./cmd/pinchtab+RUN go build -ldflags="-s -w" -o pinchtab ./cmd/pinchtab# Runtime stage-FROM debian:bookworm-slim--# Install Chrome dependencies and Chrome-RUN apt-get update && apt-get install -y --no-install-recommends \+FROM alpine:latest++# Install Chromium and dependencies (same as main Dockerfile)+RUN apk add --no-cache \+ chromium \+ nss \+ freetype \+ harfbuzz \ca-certificates \+ ttf-freefont \curl \- gnupg \- && curl -fsSL https://dl.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 --no-install-recommends \- google-chrome-stable \- && rm -rf /var/lib/apt/lists/*--# Copy binary-COPY --from=builder /app/pinchtab /usr/local/bin/pinchtab--# Create non-root user-RUN useradd -m -s /bin/bash pinchtab+ dumb-init++# Create non-root user and state directory+RUN adduser -D -g '' pinchtab && \+ mkdir -p /data && \+ chown pinchtab:pinchtab /data++# Copy binary from builder+COPY --from=builder /build/pinchtab /usr/local/bin/pinchtab++# Switch to non-root userUSER pinchtab-WORKDIR /home/pinchtab+WORKDIR /data++# Environment variables for headless Chrome+ENV PINCHTAB_BIND=0.0.0.0 \+ PINCHTAB_PORT=9999 \+ PINCHTAB_HEADLESS=true \+ PINCHTAB_STATE_DIR=/data \+ CHROME_BIN=/usr/bin/chromium-browserEXPOSE 9999+ENTRYPOINT ["/usr/bin/dumb-init", "--"]CMD ["pinchtab", "server"]diff --git a/tests/e2e/docker-compose.yml b/tests/e2e/docker-compose.ymlindex 7efae1da..f7c55f9b 100644--- a/tests/e2e/docker-compose.yml+++ b/tests/e2e/docker-compose.yml@@ -5,16 +5,12 @@ services:dockerfile: tests/e2e/Dockerfile.pinchtabports:- "9999:9999"- environment:- - PINCHTAB_PORT=9999- - PINCHTAB_BIND=0.0.0.0- - PINCHTAB_HEADLESS=truehealthcheck:- test: ["CMD", "curl", "-f", "http://localhost:9999/health"]- interval: 2s- timeout: 5s- retries: 10- start_period: 10s+ test: ["CMD", "curl", "-sf", "http://localhost:9999/health"]+ interval: 3s+ timeout: 10s+ retries: 20+ start_period: 15sfixtures:image: nginx:alpine