Use ARG in a Dockerfile to declare build-time values. Unlike ENV, an ARG value exists only while the image is built, so containers created from the image do not receive it. section 11.3
Stamp build metadata into an image
Declare defaults, then use the arguments in labels: ARG BUILD_NUMBER=0, ARG BUILD_TAG=local, LABEL build_number=${BUILD_NUMBER}, and LABEL build_tag=${BUILD_TAG}. Override a value with docker image build --build-arg BUILD_TAG=ch11 -t numbers-api .; inspect the resulting labels with docker image inspect. section 11.3
