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: docs/pages/configuration/images/image-definition/dockerfile.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ images:
30
30
- The first image is built using the Dockerfile in `./Dockerfile` and the context path `./`.
31
31
- The second image is built using the Dockerfile in `./frontend/Dockerfile` and the context path `./frontend/`.
32
32
- Switching the `context` for image `frontend` assures that a statement like `ADD file.txt` or `COPY file.txt .` in `./frontend/Dockerfile` uses the local file `./frontend/file.txt` instead of `./file.txt`.
33
-
- In this example, it would probably be useful to have a `./.dockerignore` file which ignores the `frontend/` folder when building the first image called `backend`.
33
+
- In this example, it is useful to have a `./.dockerignore` file, which ignores the `frontend/` folder when building the first image called `backend`.
34
34
35
35
:::note
36
36
See **[Best Practices for Image Building](../../../guides/image-building.mdx)** for details on how to optimize your Dockerfiles and use `.dockerignore` for faster image building.
0 commit comments