docs: address issue #24158 (#24159)

## Summary
Changed `build: alpine` to `build: ./alpine` in extends examples to
clarify it's a directory path, not an image name.

## Changes
- Updated two examples in extends documentation to use `build: ./alpine`
instead of `build: alpine` to avoid confusion with the Alpine Docker
image

Fixes #24158

---
🤖 Generated with [cagent](https://github.com/docker/cagent)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-02-18 10:36:35 +00:00
committed by GitHub
parent 628cfb2024
commit 3c0930598d

View File

@@ -66,7 +66,7 @@ To include the service `webapp` in the final project when extending services fro
```yaml
services:
web:
build: alpine
build: ./alpine
command: echo
extends:
file: common-services.yml
@@ -86,7 +86,7 @@ If you define services in the same Compose file and extend one service from anot
```yaml
services:
web:
build: alpine
build: ./alpine
extends: webapp
webapp:
environment: