Skip to content

Commit 1eb0e95

Browse files
committed
edits
1 parent 6a91289 commit 1eb0e95

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/container-apps/javascript-overview.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ For example:
8181
docker build \
8282
--build-arg PORT_DEFAULT=4000 \
8383
--build-arg ENABLE_DEBUG_DEFAULT=true \
84-
--tag my-custom-image:latest \
84+
--tag <IMAGE>:<TAG> \
8585
--file Dockerfile.base .
8686
```
8787

@@ -170,7 +170,7 @@ docker run \
170170
--env ENABLE_DEBUG=true \
171171
--publish 4000:4000 \
172172
--publish 9229:9229
173-
<IMAGE_NAME>:latest
173+
<IMAGE>:<TAG>
174174
```
175175

176176
For production builds, make sure you use the correct version tag, which may not be `latest`. Container image tagging conventions such as the use of `latest` are a convention. Learn more about [recommendations for tagging and versioning container images](/azure/container-registry/container-registry-image-tag-version).
@@ -197,30 +197,30 @@ build-and-deploy:
197197
- uses: actions/checkout@v4
198198

199199
- name: Set up Node.js
200-
uses: actions/setup-node@v4
201-
with:
202-
node-version: '22'
200+
uses: actions/setup-node@v4
201+
with:
202+
node-version: '22'
203203

204204
- name: Install dependencies
205-
run: npm ci
205+
run: npm ci
206206

207207
- name: Build the app
208-
run: npm run build
208+
run: npm run build
209209

210210
- name: Log in to Azure
211-
uses: azure/login@v2
212-
with:
213-
creds: ${{ secrets.AZURE_CREDENTIALS }}
211+
uses: azure/login@v2
212+
with:
213+
creds: ${{ secrets.AZURE_CREDENTIALS }}
214214

215215
- name: Deploy to Azure Container Apps
216-
run: |
217-
az containerapp up \
218-
--name my-container-app \
219-
--resource-group my-resource-group \
220-
--image my-docker-image \
221-
--environment my-environment \
222-
--cpu 1 --memory 2Gi \
223-
--env-vars NODE_ENV=production PORT=3000
216+
run: |
217+
az containerapp up \
218+
--name my-container-app \
219+
--resource-group my-resource-group \
220+
--image my-image:my_tag \
221+
--environment my-environment \
222+
--cpu 1 --memory 2Gi \
223+
--env-vars NODE_ENV=production PORT=3000
224224
```
225225
226226
When using Docker Registry, sign into your registry then push your Docker images to a container registry like Azure Container Registry (ACR) or Docker Hub.

0 commit comments

Comments
 (0)