FROM fedora:41

RUN true \
  && dnf -y update \
  && dnf -y install curl g++ gcc-plugin-devel git make nodejs nodejs openssl wget xxd yarnpkg \
  && dnf -y install glibc-static libstdc++-static \
  && dnf clean all

RUN true \
  && mkdir ~/build2-build \
  && cd ~/build2-build \
  && curl -sSfO https://download.build2.org/0.17.0/build2-install-0.17.0.sh \
  && sh build2-install-0.17.0.sh --yes --trust yes \
  && cd / \
  && rm -rf ~/build2-build