You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/javascript-overview.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ For example:
81
81
docker build \
82
82
--build-arg PORT_DEFAULT=4000 \
83
83
--build-arg ENABLE_DEBUG_DEFAULT=true \
84
-
--tag my-custom-image:latest \
84
+
--tag <IMAGE>:<TAG> \
85
85
--file Dockerfile.base .
86
86
```
87
87
@@ -170,7 +170,7 @@ docker run \
170
170
--env ENABLE_DEBUG=true \
171
171
--publish 4000:4000 \
172
172
--publish 9229:9229
173
-
<IMAGE_NAME>:latest
173
+
<IMAGE>:<TAG>
174
174
```
175
175
176
176
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:
197
197
- uses: actions/checkout@v4
198
198
199
199
- 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'
203
203
204
204
- name: Install dependencies
205
-
run: npm ci
205
+
run: npm ci
206
206
207
207
- name: Build the app
208
-
run: npm run build
208
+
run: npm run build
209
209
210
210
- 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 }}
214
214
215
215
- 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
224
224
```
225
225
226
226
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