Skip to content

Commit 06e0aaf

Browse files
Merge pull request #954 from WhyNotHugo/reword-doc
Reword docker usage hint
2 parents 4e8e40a + b7e6a2b commit 06e0aaf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/usage.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,12 @@ prevents using needless volatile data there.
141141
## with Docker/Podman
142142

143143

144-
By default, Docker will not copy the `.git` folder into your container.
145-
Therefore, builds with version inference might fail.
146-
Consequently, you can use the following snippet to infer the version from
147-
the host OS without copying the entire `.git` folder to your `Dockerfile`.
144+
In some situations, Docker may not copy the `.git` into the container when
145+
building images. Because of this, builds with version inference may fail.
146+
147+
The following snippet exposes the external `.git` directory without copying.
148+
This allows the version to be inferred properly form inside the container
149+
without copying the entire `.git` folder into the container image.
148150

149151
```dockerfile
150152
RUN --mount=source=.git,target=.git,type=bind \

0 commit comments

Comments
 (0)