Is there any way to make a build argument mandatory during docker build? The expected behaviour would be for the build to fail if the argument is missing.
docker build
Another simple way:
RUN test -n "$MY_VARIABLE" || (echo "MY_VARIABLE not set" && false)