# Builder image for the self-hosted HTTP Toolkit single-file binary (Linux x64). # Provides Node, Bun, and the toolchain needed to build the server's native modules. FROM node:22-bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ python3 \ cmake \ pkg-config \ git \ curl \ unzip \ ca-certificates \ jq \ && rm -rf /var/lib/apt/lists/* # Install Bun (used for the single-file `--compile` step) RUN curl -fsSL https://bun.sh/install | bash ENV PATH="/root/.bun/bin:${PATH}" WORKDIR /source