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.
I tested with RUN test -n what @konradstrack mentioned in the original (edit) post... that seems do the job of mandating the variable to be passed as the build time argument for the docker build command:
FROM ubuntu
ARG MY_VARIABLE
RUN test -n "$MY_VARIABLE"
ENV MY_VARIABLE $MY_VARIABLE