diff --git a/.dockerignore b/.dockerignore index 6c4f628..8a8018f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,3 +7,9 @@ docker/ # Development and VCS noise .git/ .gitignore + +# Generated build outputs — can be 1.4G (target/) and 243M (node_modules/) +# after a local dev build; exclude them to keep the build context small. +target/ +frontend/node_modules/ +frontend/dist/ diff --git a/Dockerfile b/Dockerfile index 7602011..699cd33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ############################################################################### # Stage 1 – Build the Rust server and CLI binaries ############################################################################### -FROM rust:1.87-slim-bookworm AS builder +FROM rust:1.88-slim-bookworm AS builder RUN apt-get update && apt-get install -y --no-install-recommends \ pkg-config \ diff --git a/crates/archivr-core/src/downloader/singlefile.rs b/crates/archivr-core/src/downloader/singlefile.rs index 4e19110..97ebb81 100644 --- a/crates/archivr-core/src/downloader/singlefile.rs +++ b/crates/archivr-core/src/downloader/singlefile.rs @@ -90,8 +90,8 @@ fn save_with( .arg(&out_file) .arg(format!("--browser-executable-path={chrome}")) .arg("--browser-headless") - .arg("--browser-wait-until=networkidle2") - // Extra delay after networkidle2: Cloudflare Fonts injects @font-face + .arg("--browser-wait-until=networkAlmostIdle") + // Extra delay after networkAlmostIdle: Cloudflare Fonts injects @font-face // CSS after HTML parse, so the font hook needs more time to see it. .arg("--browser-wait-delay=2000") // Realistic UA: some origins block headless Chrome's default UA string.