fabrica

hanna/fabrica

build(docker): install g++ for the aws-lc-sys C++ sources

4244680 · hanna committed on 2026-07-26

The S3 client's aws-lc-rs TLS provider enables post-quantum support, whose
aws-lc-sys build compiles C++ sources — cc-rs failed with "failed to find tool
c++" because the builder stage only had a C compiler. Add g++ (which provides
the /usr/bin/c++ alternative on Debian).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
1 files changed · +4 −3UnifiedSplit
Dockerfile +4 −3
@@ -9,10 +9,11 @@
99 # ---- Builder ----
1010 FROM rustlang/rust:nightly-slim AS builder
1111
12-# pkg-config + libssl-dev for native-tls (mail); cmake for aws-lc-sys (ssh) and
13-# the vendored libgit2 build; git for build scripts.
12+# pkg-config + libssl-dev for native-tls (mail); cmake + a C/C++ toolchain for
13+# aws-lc-sys (SSH and the S3 client's aws-lc-rs TLS, which builds C++ sources);
14+# git for build scripts.
1415 RUN apt-get update && apt-get install -y --no-install-recommends \
15- pkg-config libssl-dev cmake git ca-certificates \
16+ pkg-config libssl-dev cmake g++ git ca-certificates \
1617 && rm -rf /var/lib/apt/lists/*
1718
1819 WORKDIR /build