An Alpine-based asdf container intended to be used as a development tool to enable quick and easy installation of tools.
asdf_install command:.tool-versions from the user's $HOME and installs missing plugins and tools with specified versions.verify_asdf command:asdf version.${ASDF_RC} environment variable:/etc/profile.d/asdfrc.sh, which can be sourced to:
asdfAlways source the ASDF environment before using:
. "${ASDF_RC}"
Ensure .tool-versions file exists in your $HOME directory:
Example:
cp /path/to/your/.tool-versions $HOME/
Install the tools listed in .tool-versions:
asdf_install
Verify asdf installation:
verify_asdf
Customize further as needed.
Use the latest version of this image when writing your Dockerfile.
Install necessary build dependencies (build-deps) before running asdf_install.
.tool-versions controls what gets installed.
Example content:
python 3.12.2
nodejs 20.10.0
asdf is installedasdf version shows correctlyasdf_install:
$HOME/.tool-versions is missingasdf binaries are correctly added to $PATHsource_asdf_scripts:
$HOME/.bashrc when sourcedContent type
Image
Digest
sha256:11d5d180b…
Size
11.9 MB
Last updated
12 months ago
docker pull dmascot/asdf