docker build --target build_stage_target -t build_name .
Running the above command in my pipelines does not produce the desired results. The --target flag is apparently ignored, and the build runs all stages before and after the specified stage.
Is this indeed not supported or could I be doing something wrong?