ACR builds are unable to handle the build platform flag commonly found in Dockerfiles. Since it's needed for some local containers (like if you're running on a Mac, for instance) we can't just delete the flag.
We should be able to copy the Dockerfile contents, remove the flag, and add that to the compressed tar file rather than using the Dockerfile selected by the user.
ACR builds are unable to handle the build platform flag commonly found in Dockerfiles. Since it's needed for some local containers (like if you're running on a Mac, for instance) we can't just delete the flag.
We should be able to copy the Dockerfile contents, remove the flag, and add that to the compressed tar file rather than using the Dockerfile selected by the user.