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
@@ -28,7 +28,7 @@ images:
28
28
```
29
29
**Explanation:**
30
30
- The first image is built using the Dockerfile in `./Dockerfile` and the context path `./`.
31
-
- The second image would be built using the Dockerfile in `./frontend/Dockerfile` and the context path `./frontend/`.
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` would assure that a statement like `ADD file.txt` or `COPY file.txt .` in `./frontend/Dockerfile` would use the local file `./frontend/file.txt` instead of `./file.txt`.
33
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`.
0 commit comments