FROM ubuntu:26.04 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ build-essential ca-certificates clang cmake curl fish git ninja-build nodejs procps python3 zsh ARG BB_VERSION=1.13.229 RUN architecture="$(uname -m)"; \ case "$architecture" in \ aarch64) digest=d85a95210efe6d8fd3b534f3d594948e3f30fa1c5864044773105ad3e2d79096 ;; \ x86_64) architecture=amd64; digest=64fb984991c6e68f44e8a9391176a9bb411f9b9ae9959a6bca5307c75a7414da ;; \ *) exit 1 ;; \ esac; \ curl -fL "https://github.com/babashka/babashka/releases/download/v${BB_VERSION}/babashka-${BB_VERSION}-linux-${architecture}-static.tar.gz" -o /var/tmp/bb.tar.gz && \ printf '%s %s\n' "$digest" /var/tmp/bb.tar.gz | sha256sum -c - && \ tar -xzf /var/tmp/bb.tar.gz -C /usr/local/bin bb # The named context supplies the same Goose source as the macOS test run. COPY --from=goose CMakeLists.txt /opt/goose/CMakeLists.txt COPY --from=goose cmake /opt/goose/cmake COPY --from=goose src /opt/goose/src COPY --from=goose third_party /opt/goose/third_party COPY --from=goose stdlib /opt/goose/stdlib RUN cmake -S /opt/goose -B /opt/goose/build -G Ninja -DCMAKE_BUILD_TYPE=Release -DGOOSE_VERSION=2026.3-local && \ cmake --build /opt/goose/build -j 2 ENV PATH="/opt/goose/build:${PATH}" ENV GOOSE_STDLIB=/opt/goose/stdlib WORKDIR /work CMD ["make", "check", "test", "test-debug"]