# protoc with protobuf-c's plugin (protoc-c), for generate.sh. Debian bookworm's protobuf-c-compiler is 1.4.1, the
# version of the protobuf-c runtime in ESP-IDF (components/protobuf-c): the generated code needs a runtime at least
# as new as the generator.
FROM debian:bookworm-20261104-slim

RUN apt-get update \
 && apt-get install -y --no-install-recommends protobuf-compiler protobuf-c-compiler libprotobuf-dev \
 && rm -rf /var/lib/apt/lists/* \
 && protoc --version && protoc-c --version | head -1

WORKDIR /work
ENTRYPOINT ["protoc"]
