pub fn generate_dockerfile(kernel_version: &str) -> StringExpand description
Generate the Dockerfile content for building a Linux kernel.
The Dockerfile:
- Starts from Alpine 3.19 (small, fast package install)
- Installs the full GCC build toolchain + kernel build dependencies
- Downloads the specified kernel version from kernel.org
- Copies the RVF microVM kernel config
- Runs
make olddefconfigto fill in defaults, then builds bzImage - Multi-stage build: final image contains only the bzImage