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
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Azure Container Apps can run any containerized JavaScript application in the clo
17
17
18
18
## Configuration
19
19
20
+
Azure Container Apps enable you to streamline the deployment of your JavaScript applications through effective containerization including setting up environment variables, designing efficient Dockerfiles, and organizing your application's build process.
21
+
20
22
### Environment Variables
21
23
Environment variables are crucial for configuring your application. Use a `.env` file to manage these variables locally and ensure they're securely managed in production with a service like [Azure Key Vault](/azure/key-vault/).
22
24
@@ -79,8 +81,8 @@ For example:
79
81
docker build \
80
82
--build-arg PORT_DEFAULT=4000 \
81
83
--build-arg ENABLE_DEBUG_DEFAULT=true \
82
-
-t my-custom-image:latest \
83
-
-f Dockerfile.base .
84
+
--tag my-custom-image:latest \
85
+
--file Dockerfile.base .
84
86
```
85
87
86
88
In this example, the environment variables `PORT` and `ENABLE_DEBUG` are set to explicit values, instead of their default values.
@@ -235,6 +237,7 @@ Optimize your production build by including only the essential code and dependen
235
237
236
238
## Security
237
239
240
+
Security considerations for JavaScript developers using Azure Container Apps includes securing environment variables (such as using Azure Key Vault), ensuring HTTPS with proper certificate management, maintaining up-to-date dependencies with regular audits, and implementing robust logging and monitoring to quickly detect and respond to threats.
238
241
239
242
### Secure environment variables
240
243
@@ -463,6 +466,8 @@ Use the [Azure Container Apps](https://marketplace.visualstudio.com/items?itemNa
463
466
464
467
## Troubleshooting
465
468
469
+
When your application runs into run time issues on Azure Container Apps, you can use logging, remote debugging, and health check alerts to find and resolve the issue.
470
+
466
471
### Logging
467
472
468
473
Enable and configure logging to capture application logs. Use Azure Monitor and Log Analytics to collect and analyze logs.
0 commit comments