# Linux build and test environment for secrethider: `make docker` builds this image and runs the suites in it
# against a clean clone of the committed tree (so build outputs of the host never leak in).
FROM node:22-bookworm

RUN apt-get update \
 && apt-get install -y --no-install-recommends build-essential git make python3 python3-pip python3-venv python3-dev pkg-config \
 && rm -rf /var/lib/apt/lists/*

# Debian's cmake is older than the 3.26 the project needs; uv provides Python 3.12/3.13/3.14 for the abi3 check
RUN pip install --break-system-packages cmake ninja uv

ENV UV_LINK_MODE=copy
WORKDIR /work
