# Build-only toolchain image for kvida-os.
#
# Provides the Zephyr SDK toolchain, west, CMake, Ninja and Python that
# NCS builds need. It intentionally does NOT bake in the NCS/Zephyr
# module tree (nrf/, zephyr/, modules/, ...) fetched by `west update` --
# that is left to a named volume mounted at /workspace at container run
# time, so the image stays small and NCS revisions can be bumped without
# rebuilding it.
#
# NOTE: verify this base image tag still exists/is current before relying
# on it -- it could not be checked against the live registry while
# writing this Dockerfile.
FROM ghcr.io/zephyrproject-rtos/zephyr-build:latest

RUN pip3 install --no-cache-dir -U west

WORKDIR /workspace

# TODO: install Nordic's nRF Command Line Tools / nrfutil here if
# `west flash` should run from inside this container against a J-Link
# probe forwarded into WSL2 via usbipd-win, instead of from the host.
