High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
docker: optimize setup and ensure compatibility with internal/ structure
Luigi Agostic9ba99b69dba
diff --git a/Dockerfile b/Dockerfileindex e8dde9a2..87d99470 100644--- a/Dockerfile+++ b/Dockerfile@@ -10,28 +10,30 @@ RUN go build -ldflags="-s -w" -o pinchtab ./cmd/pinchtab# Runtime stageFROM alpine:latest+LABEL org.opencontainers.image.source="https://github.com/pinchtab/pinchtab"+LABEL org.opencontainers.image.description="High-performance browser automation bridge"+# Install Chromium and dependenciesRUN apk add --no-cache \chromium \nss \freetype \- freetype-dev \harfbuzz \ca-certificates \ttf-freefont \dumb-init-# Create non-root user-RUN adduser -D -g '' pinchtab+# Create non-root user and state directory+RUN adduser -D -g '' pinchtab && \+ mkdir -p /data && \+ chown pinchtab:pinchtab /data# Copy binary from builderCOPY --from=builder /build/pinchtab /usr/local/bin/pinchtab-# Create state directory-RUN mkdir -p /data && chown pinchtab:pinchtab /data-# Switch to non-root userUSER pinchtab+WORKDIR /data# Environment variablesENV BRIDGE_PORT=9867 \diff --git a/docker-compose.yml b/docker-compose.ymlindex 360c5dc9..e85d0fb6 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -12,7 +12,11 @@ services:- BRIDGE_PORT=9867- BRIDGE_HEADLESS=true- BRIDGE_TOKEN=${PINCHTAB_TOKEN:-}+ - BRIDGE_STATE_DIR=/data+ - BRIDGE_PROFILE=/data/chrome-profilerestart: unless-stopped+ # Shared memory is critical for Chrome stability+ shm_size: '2gb'# Required for Chrome to work in containersecurity_opt:- seccomp:unconfined