Skip to content

Commit 491b218

Browse files
Add ACR Build and Push Guide documentation
1 parent 9f44541 commit 491b218

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/ACRBuildAndPushGuide.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Azure Container Registry (ACR) – Build & Push Guide
2+
3+
This guide provides step-by-step instructions to build and push Docker images for **WebApp** and **Backend** services into Azure Container Registry (ACR).
4+
5+
## 📋 Prerequisites
6+
Before starting, ensure you have:
7+
- An active [Azure Subscription](https://portal.azure.com/)
8+
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) installed and logged in
9+
- [Docker](https://docs.docker.com/get-docker/) installed and running
10+
- Access to your Azure Container Registry (ACR)
11+
12+
---
13+
14+
## 🚀 Build and Push Images
15+
16+
Login to ACR :
17+
``` bash
18+
az acr login --name $ACR_NAME
19+
```
20+
Command Build and Push Images to Backend :
21+
22+
```bash
23+
az acr login --name <containerregname>
24+
docker build --no-cache -f docker/Frontend.Dockerfile -t <acrloginserver>/<repo>:<tagname> .
25+
docker push <acrloginserver>/<repo>:<tagname>
26+
```
27+
28+
## ✅ Verification
29+
30+
Run the following command to verify that images were pushed successfully:
31+
```bash
32+
az acr repository list --name $ACR_NAME --output table
33+
```
34+
35+
You should see repositories in the output.
36+
37+
## 📝 Notes
38+
39+
- Always use meaningful tags (v1.0.0, staging, prod) instead of just latest.
40+
41+
- If you are pushing from a CI/CD pipeline, make sure the pipeline agent has access to Docker and ACR.
42+
43+
- For private images, ensure your services (e.g., Azure Container Apps, AKS, App Service) are configured with appropriate ACR pull permissions.
44+
45+
46+

0 commit comments

Comments
 (0)