By now I am researching, how I could move my infrastructure to Azure using terraform. Where I am stuck by now is the following scenario: I have a docker image, that uses the copy command to add some files into it. One solution I could think of is that I first build this Image using docker, push it to azure registry and then using it as container inside the azrerm_container_group resource. Using the kreuzwerker/docker provider I could also just use the dockerfile, but could not find a equivalent solution in Azure. So, what would be your suggestions? Thanks in Advance!
the base for azure is:
resource "azurerm_container_group" "containers" {
name = "xxx"
location = xxx
resource_group_name = xxx
ip_address_type = "Public"
os_type = "Linux"
container {
name = "xxx"
image = "xx/xx:latest"
cpu = "1"
memory = "1.5"