MohnJadden opened a new issue, #27690: URL: https://github.com/apache/airflow/issues/27690
### What do you see as an issue? I am using Azure Container Registry to test out Airflow. When I try to build an image using the Dockerfile as saved directly from this repo, the build fails. I am running the command `az acr build --registry mycontainerregistryname --image apache/airflow:latest --file Dockerfile .` as described by [this Azure quickstart](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-quickstart-task-cli?source=recommendations). Some research brought up the fact that this Dockerfile requires BuildKit support to be enabled. Azure Container Registry doesn't seem to have any option to enable BuildKit or set environment variables. Thus, I can't build a container image using Azure Container Registry. ### Solving the problem The documentation should include steps to either fix the Dockerfile and deploy via Azure Container Registry, or a different Dockerfile should be made available for ACR users. ### Anything else I can reproduce the issue at will, in any Azure tenant. I do not have Docker Desktop installed nor do I plan on doing so, this is meant to be cloud-only as a proof of concept. The output errors out as follows: ``` Packing source code into tar to upload... Uploading archived source code from 'C:\Users\me\AppData\Local\Temp\build_archive_f21856754d2244b3b4b1b2db63ca5941.tar.gz'... Sending context (244.851 MiB) to registry: mycontainerregistry... Queued a build with ID: ca1 Waiting for an agent... 2022/11/15 14:28:42 Downloading source code... 2022/11/15 14:28:50 Finished downloading source code 2022/11/15 14:28:50 Using acb_vol_2bf0e2cb-ca55-4dd7-99b9-b55345553be4 as the home volume 2022/11/15 14:28:50 Setting up Docker configuration... 2022/11/15 14:28:51 Successfully set up Docker configuration 2022/11/15 14:28:51 Logging in to registry: mycontainerregistry.azurecr.io 2022/11/15 14:28:52 Successfully logged into mycontainerregistry.azurecr.io 2022/11/15 14:28:52 Executing step ID: build. Timeout(sec): 28800, Working directory: '', Network: '' 2022/11/15 14:28:52 Scanning for dependencies... 2022/11/15 14:28:52 Successfully scanned dependencies 2022/11/15 14:28:52 Launching container with name: build Sending build context to Docker daemon 1.233GB Error response from daemon: dockerfile parse error line 76: unknown instruction: SET 2022/11/15 14:29:00 Container failed during run: build. No retries remaining. failed to run step ID: build: exit status 1 Run ID: ca1 failed after 19s. Error: failed during run, err: exit status 1 Run failed ``` ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
