fix: update Dockerfile for BoringSSL build deps (cmake, clang)

wreq uses BoringSSL (via boring-sys2) which needs cmake and clang
at build time. Removed stale reference to Impit's patched rustls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Valerio 2026-04-01 18:13:18 +02:00
parent aaf51eddef
commit 11b8f68f51

View file

@ -6,10 +6,12 @@
# ---------------------------------------------------------------------------
FROM rust:1.93-bookworm AS builder
# Build dependencies: OpenSSL for TLS, pkg-config for linking
# Build dependencies: cmake + clang for BoringSSL (wreq), pkg-config for linking
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config \
libssl-dev \
cmake \
clang \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
@ -24,7 +26,7 @@ COPY crates/webclaw-pdf/Cargo.toml crates/webclaw-pdf/Cargo.toml
COPY crates/webclaw-mcp/Cargo.toml crates/webclaw-mcp/Cargo.toml
COPY crates/webclaw-cli/Cargo.toml crates/webclaw-cli/Cargo.toml
# RUSTFLAGS (reqwest_unstable) — required by Impit's patched rustls
# Copy .cargo config if present (optional build flags)
COPY .cargo .cargo
# Create dummy source files so cargo can resolve deps and cache them.