FROM --platform=linux/arm64 ubuntu:22.04

# Node.js 20 from NodeSource (Ubuntu Jammy ships v12 which is too old
# for actions/checkout@v4 — static class blocks require Node.js >= 16).
#
# libboost-dev  — header-only Boost required by CGAL 6.x (-DWITH_CGAL=ON)
RUN apt-get update -qq && \
    apt-get install -y --no-install-recommends \
      curl ca-certificates && \
    curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
    apt-get install -y --no-install-recommends \
      nodejs \
      cmake \
      build-essential \
      git \
      libboost-dev \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /workspace
