pub fn expand_variables(
input: &str,
args: &HashMap<String, String>,
env: &HashMap<String, String>,
) -> StringExpand description
Expand variables in a string using the provided ARG and ENV maps.
Variables are expanded in the following order of precedence:
- Build-time ARGs (provided at build time)
- ENV variables (from Dockerfile ENV instructions)
- Default ARG values (from Dockerfile ARG instructions)
§Arguments
input- The string containing variable referencesargs- ARG variable values (build-time and defaults)env- ENV variable values
§Returns
The string with all variables expanded