Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,28 @@ RUN cd js && npm install && npm run build
# Examples
COPY examples/ examples/

# Pre-download stealth Chromium binary during build (not at runtime)
# Remove welcome marker so users see it on first container run
# Pre-download stealth Chromium binary during build
RUN python -c "from cloakbrowser import ensure_binary; ensure_binary()" \
&& rm -f ~/.cloakbrowser/.welcome_shown

# ============================================================
# CRITICAL FIX: Disable Crashpad
# ============================================================
RUN find /root/.cloakbrowser -type d -name "chromium-*" | while read dir; do \
cd "$dir" && \
# Remove the real crashpad handler
rm -f chrome_crashpad_handler && \
# Create no-op handler
printf '#!/bin/sh\nexit 0\n' > chrome_crashpad_handler && \
chmod +x chrome_crashpad_handler && \
echo "✅ Disabled crashpad in $dir"; \
done

# Also disable via environment
ENV CHROME_CRASHPAD_DISABLE=1
ENV BREAKPAD_DUMP_LOCATION=/dev/null
ENV CLOAKBROWSER_AUTO_UPDATE=false

# CLI shortcuts
COPY bin/cloaktest /usr/local/bin/cloaktest
COPY bin/cloakserve /usr/local/bin/cloakserve
Expand Down