I'm trying to use a --build-arg
in one of my run statements, but it is failing.
Dockerfile
ARG OS_VERSION
...
RUN ["node", "./bin/installtoolchain.js", "${OS_VERSION}"]
I build the image using the following command:
docker build --tag installer --build-arg OS_VERSION=9 .
The script is failing, because it is passing the variable name instead of the value.
Error: Invalid toolchain configuration settings! Received: {
"firmwareVersion": "${OS_VERSION}"
}
...
Why isn't my --build-arg
being utilized?