This is a demo application in Python hosted on Azure Container Apps. Follow all the steps to deploy the application on Azure.
docker build src\. -t demopythonaca:v1 --platform linux/amd64
docker run -d -p 80:8080 demopythonaca:v1
az login
az group create --location francecentral --name demopythonaca-rg
az deployment group create --resource-group demopythonaca-rg --template-file ./Infrastructure/main.bicep
Replace the <REGISTRY_SERVER> below with login server
docker login <REGISTRY_SERVER>
docker tag demopythonaca:v1 <REGISTRY_SERVER>/demopythonaca
docker push <REGISTRY_SERVER>/demopythonaca
Replace the <REGISTRY_SERVER> below with ACR login server
Replace the <REGISTRY_USERNAME> with ACR username
Replace the <REGISTRY_PASSWORD> with ACR password
RESOURCE_GROUP=demopythonaca-rg CONTAINER_IMAGE_NAME=<REGISTRY_SERVER>/demopythonaca:latest CONTAINERAPPS_ENVIRONMENT=envzzm5w2yh4rp2a REGISTRY_SERVER=<REGISTRY_SERVER> REGISTRY_USERNAME=<REGISTRY_USERNAME> REGISTRY_PASSWORD=<REGISTRY_PASSWORD>
az containerapp create \ --name demopythonaca \ --resource-group $RESOURCE_GROUP \ --image $CONTAINER_IMAGE_NAME \ --environment $CONTAINERAPPS_ENVIRONMENT \ --registry-server $REGISTRY_SERVER \ --registry-username $REGISTRY_USERNAME \ --registry-password $REGISTRY_PASSWORD \ --ingress external \ --target-port 8080 \ --transport auto \ --query properties.configuration.ingress.fqdn