Skip to content

Instantly share code, notes, and snippets.

@r10r
Last active April 28, 2025 07:59
Show Gist options
  • Save r10r/6867268d9c49eaf57fa1d8896b319813 to your computer and use it in GitHub Desktop.
Save r10r/6867268d9c49eaf57fa1d8896b319813 to your computer and use it in GitHub Desktop.
building music-assistant container

music-assistant development

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.

Wheel

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment