{"id":20697600,"url":"https://github.com/epomatti/azure-docker-aspnetcore-app","last_synced_at":"2026-04-29T08:35:06.447Z","repository":{"id":108712276,"uuid":"190666100","full_name":"epomatti/azure-docker-aspnetcore-app","owner":"epomatti","description":"App publishing to Azure Container Registry + Container Instances with Docker.","archived":false,"fork":false,"pushed_at":"2022-03-19T03:53:50.000Z","size":1534,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T10:59:14.529Z","etag":null,"topics":["acr","aspnetcore","az-300","azure","azure-container-instances","azure-container-registry","docker","docker-image","dotnet-core"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epomatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-07T00:08:45.000Z","updated_at":"2022-03-19T03:35:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e965fe2b-6ae0-468c-a552-6ff4352cfc95","html_url":"https://github.com/epomatti/azure-docker-aspnetcore-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/epomatti/azure-docker-aspnetcore-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-docker-aspnetcore-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-docker-aspnetcore-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-docker-aspnetcore-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-docker-aspnetcore-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epomatti","download_url":"https://codeload.github.com/epomatti/azure-docker-aspnetcore-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-docker-aspnetcore-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acr","aspnetcore","az-300","azure","azure-container-instances","azure-container-registry","docker","docker-image","dotnet-core"],"created_at":"2024-11-17T00:19:09.483Z","updated_at":"2026-04-29T08:35:06.433Z","avatar_url":"https://github.com/epomatti.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Docker app\n\n![dotnet](https://github.com/epomatti/azure-docker-aspnetcore-app/actions/workflows/dotnet.yml/badge.svg)\n\nA simple docker app that deploys a local Docker image to remote Azure Container Registry.\n\n\u003cimg src=\".docs/diagram.png\" width=600/\u003e\n\nRequirements: .NET Core 6, Azure CLI, Docker\n\n## Running locally\n\n```bash\ndotnet run\n```\n\n## Building your image\n\n```bash\ndotnet publish -c Release\ndocker build . --tag aspcontainers\n```\n\nTo run your docker image locally:\n\n```bash\ndocker run -d -p 5000:80 aspcontainers\n```\n\n## Publish to Azure\n\nSteps to publish your built image to ACR and hosting on ACI.\n\nSet the common environment variables (change values as you need):\n\n```bash\n# Create Azure Container Registry\nexport rg='rg-dotnetapp'\nexport acr='acrdotnetapp'\nexport aci='acidotnetapp'\nexport location='eastus'\n```\n\nLogin to Azure, create the ACR and push the docker image:\n\n```bash\n# login to Azure from the CLI\naz login\n\n# create the resource group\naz group create --name $rg --location $location --output Table\n\n# create the container registry\naz acr create --name $acr --resource-group $rg --sku Basic --output Table\n\n# push to acr\naz acr login --name $acr\ndocker tag aspcontainers \"$acr.azurecr.io/aspcontainers\"\ndocker push \"$acr.azurecr.io/aspcontainers\"\n```\n\nGet the and set it to a variable `export acrpass='\u003c.....\u003e'`\n\n```bash\naz acr update -n $acr --admin-enabled true\naz acr credential show --name $acr --query \"passwords[0].value\"\n```\n\nSet the name for your container instance:\n\n```bash\ndns='yourappdns'\n```\n\nFinally, create your container instance:\n\n```bash\naz container create \\\n  --resource-group $rg \\\n  --name $aci \\\n  --image \"$acr.azurecr.io/aspcontainers:latest\" \\\n  --cpu 2 \\\n  --memory 2 \\\n  --registry-login-server \"$acr.azurecr.io\" \\\n  --registry-username $acr \\\n  --registry-password $acrpass \\\n  --dns-name-label $dns \\\n  --ports 80 \\\n  --location $location\n```\n\nYour application should be available at http://yourappdns.eastus.azurecontainer.io. \nTo enable HTTPS for Container Instances in Production, [additional steps](https://docs.microsoft.com/en-us/azure/container-instances/container-instances-container-group-ssl) are required.\n\n\u003cimg src=\".docs/demo.png\" width=400/\u003e\n\n## Destroy the resources\n\nDon't forget to clean your resources to avoid unwanted costs:\n\n```bash\naz group delete -n $rg\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fazure-docker-aspnetcore-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepomatti%2Fazure-docker-aspnetcore-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fazure-docker-aspnetcore-app/lists"}