This builder image constructs a Alpine Linux rootfs.tar.xz
for us to use when building the base Alpine Linux image. The mkimage-alpine.sh
script does all the heavy lifting. During the configuration of the image we add our apk-install
convenience script.
The builder takes several options:
-r <release>
: The release tag to use (such asedge
orv3.1
).-m <mirror>
: The mirror URL base. Defaults tohttp://nl.alpinelinux.org/alpine
.-s
: Outputs therootfs.tar.xz
to stdout.-c
: Adds theapk-install
script to the resulting rootfs.-e
: Adds extraedge/main
andedge/testing
pins to the repositories file.-d
: Disables su to root by removing the blank root password.-E
: Does not addcommunity
to the repositories file (necessary for versions without a community repo).-t <timezone>
: Sets the timezone.-p <packages>
: Comma-separated packages list. Default isalpine-base
.-b
: Extractsalpine-base
to the rootfs without dependencies. For images slimmed down with-p
which still want/etc/*-release
and/etc/issue
.-a <architecture>
: Changes the architecture of the rootfs to download. Default isx86_64