Skip to content

Commit 30c5f70

Browse files
committed
edits
1 parent 7269f65 commit 30c5f70

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/container-apps/javascript-overview.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Azure Container Apps can run any containerized JavaScript application in the clo
1717

1818
## Configuration
1919

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.
20+
Azure Container Apps enable you for streamlining the deployment of your JavaScript applications through effective containerization including setting up environment variables, designing efficient Dockerfiles, and organizing your application's build process.
2121

2222
### Environment Variables
2323
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/).
@@ -37,14 +37,14 @@ A well-configured Dockerfile is essential for containerizing your application:
3737
* **Use a base Dockerfile**: If multiple projects share a common setup, you can create a base Dockerfile that includes these common steps. Each project's Dockerfile can then start with `FROM` this base image and add project-specific configurations.
3838
* **Parameterization – Build Arguments**: You can use build arguments (`ARG`) in your Dockerfile to make it more flexible. This way, you can pass in different values for these arguments when building for development, staging or production.
3939
* **Optimized Node.js base image**: Ensure you're using an appropriate **Node.js base image**. Consider using smaller, optimized images such as the Alpine variants to reduce overhead.
40-
* **Minimal Files – Copy Only Essentials**: Focus on copying only the necessary files into your container. Create a `.dockerignore` file to ensure development files aren't copied in such as `.env` and `node_modules`. This file is helps speed up builds in cases where developers copied in unnecessary files.
40+
* **Minimal Files – Copy Only Essentials**: Focus on copying only the necessary files into your container. Create a `.dockerignore` file to ensure development files aren't copied in such as `.env` and `node_modules`. This file helps speedup builds in cases where developers copied in unnecessary files.
4141
* **Separate build and runtime with multi-stage builds**: Use multi-stage builds to create a lean final image by separating the build environment from the runtime environment.
4242
* **Prebuild artifacts by compiling and bundling**: Prebuilding your application artifacts (such as compiling TypeScript or bundling JavaScript) before copying them into the runtime stage can minimize image size, speed up container deployment, and improve cold start performance. Careful ordering of instructions in your Dockerfile also optimizes caching and rebuild times.
43-
* **Docker Compose for development environments**: Docker Compose allows you to define and run multi-container Docker applications, which is useful for setting up development environments. You can include the build context and Dockerfile in the compose file, allowing you to use different Dockerfiles for different services when necessary.
43+
* **Docker Compose for development environments**: Docker Compose allows you to define and run multi-container Docker applications. This multi-container approach is useful for setting up development environments. You can include the build context and Dockerfile in the compose file. This level of encapsulation allows you to use different Dockerfiles for different services when necessary.
4444

4545
### Base Dockerfile
4646

47-
This file serves as a common starting point for your Node.js images. You can use it with a `FROM` directive in Dockerfiles that reference this base image. Use either a version number or a commit to support the most up to date and secure version of the image.
47+
This file serves as a common starting point for your Node.js images. You can use it with a `FROM` directive in Dockerfiles that reference this base image. Use either a version number or a commit to support the recent and secure version of the image.
4848

4949
```yaml
5050
# Dockerfile.base
@@ -89,7 +89,7 @@ In this example, the environment variables `PORT` and `ENABLE_DEBUG` are set to
8989

9090
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).
9191

92-
### Development environment with Docker Compose
92+
### Setup development environment with Docker Compose
9393

9494
The following example configuration uses a dedicated development Dockerfile (*Dockerfile.dev*) along with volume mounts for live reloading and local source sync.
9595

@@ -223,7 +223,7 @@ build-and-deploy:
223223
--env-vars NODE_ENV=production PORT=3000
224224
```
225225
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.
226+
When you use Docker Registry, sign into your registry then push your Docker images to a container registry like Azure Container Registry (ACR) or Docker Hub.
227227
228228
```bash
229229
# Tag the image
@@ -345,7 +345,7 @@ To ensure that your logs are properly captured and accessible, you need to confi
345345
346346
While `console.log` and `console.error` are automatically captured, using a logging library like Winston provides more flexibility and control over your logging. This flexibility allows you to format logs, set log levels, and output logs to multiple destinations like files or external logging services.
347347
348-
The following example demonstrates how to configure use Winston to store high-fidelity logs.
348+
The following example demonstrates how to configure Winston to store high-fidelity logs.
349349
350350
```typescript
351351
// src/logger.ts
@@ -508,7 +508,7 @@ Enable and configure logging to capture application logs. Use Azure Monitor and
508508

509509
### Debugging
510510

511-
Use [remote debugging](#remote-debugging) tools to connect to your running container. Ensure your Dockerfile exposes the necessary ports for debugging.
511+
You use [remote debugging](#remote-debugging) tools to connect to the running container. Ensure your Dockerfile exposes the necessary ports for debugging.
512512

513513
```yaml
514514
# Expose the debugging port

0 commit comments

Comments
 (0)