Skip to content

Commit c8ddccb

Browse files
committed
Merge branch 'diberry/0212-aca-dev-guide' of https://github.com/diberry/azure-docs-pr into diberry/0212-aca-dev-guide
2 parents 30c5f70 + f9acb71 commit c8ddccb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/container-apps/javascript-overview.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,26 @@ AZURE_COSMOS_DB_ENDPOINT=https://<YOUR_COSMOSDB_RESOURCE_NAME>.documents.azure.c
3535

3636
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.
38-
* **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.
38+
39+
* **Parameterization of 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.
40+
3941
* **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.
42+
<<<<<<< HEAD
4043
* **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.
44+
=======
45+
46+
* **Copy only essentials files**: 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.
47+
48+
>>>>>>> f9acb71c902d16fe3b117b96cbed4de39a56d9a0
4149
* **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.
50+
4251
* **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.
52+
<<<<<<< HEAD
4353
* **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.
54+
=======
55+
56+
* **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.
57+
>>>>>>> f9acb71c902d16fe3b117b96cbed4de39a56d9a0
4458
4559
### Base Dockerfile
4660

0 commit comments

Comments
 (0)