Image Overview: melange

Overview: melange Chainguard Image

Container image for running melange workflows to build APK packages.

Get It!

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/melange:latest

To build the melange workflow in examples:

docker run --privileged -v "$PWD":/work cgr.dev/chainguard/melange build /work/examples/gnu-hello.yaml

Output will be in the packages directory.

To build the melange package for the host architecture:

docker run --privileged -v "$PWD":/work cgr.dev/chainguard/melange build --empty-workspace --arch $(uname -m) /work/melange.yaml

To get a shell, you can change the entrypoint:

docker run --privileged -v "$PWD":/work -it --entrypoint /bin/sh cgr.dev/chainguard/melange

/ # melange version
...

Note that melange uses bubblewrap internally, which requires various Linux capabilities, hence the use of --privileged. Because of this requirement, we recommend this image is used only for local development and testing.