See also https://github.com/music-assistant/server/blob/dev/DEVELOPMENT.md
The development documentation does not mention how to build a modified version locally.
The Dockerfile loads the music assistant server wheel package from the dist folder.
- Wheel is a great format for distributing ready-to-install libraries and applications
- A .whl package has a naming convention
https://peps.python.org/pep-0427
# build python wheel package
# NOTE python 3.12 is required
c=$(buildah from docker.io/library/python:3.12-bookworm)
mkdir dist
buildah run -v $(pwd):/build --workingdir=/build $c python -m pip wheel -r requirements_all.txt --no-deps -w dist .
# build docker image using previously build wheel package
# the wheel is installed to the *./dist* directory with a version **0.0.0.0**
buildah bud -t music-assistant --build-arg MASS_VERSION=0.0.0