Skip to content

Commit b095293

Browse files
committed
fix: replace unsupported lang tags for dockerignore blocks
Signed-off-by: David Karlsson <[email protected]>
1 parent 9b6bc8c commit b095293

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/build/building/context.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ ERROR: failed to solve: failed to compute cache key: failed to calculate checksu
411411
You can use a `.dockerignore` file to exclude files or directories from the
412412
build context.
413413

414-
```gitignore
414+
```text
415415
# .dockerignore
416416
node_modules
417417
bar
@@ -471,7 +471,7 @@ on GitHub, which contains the source code.
471471

472472
The following code snippet shows an example `.dockerignore` file.
473473

474-
```gitignore
474+
```text
475475
# comment
476476
*/temp*
477477
*/*/temp*
@@ -514,7 +514,7 @@ You can prepend lines with a `!` (exclamation mark) to make exceptions to
514514
exclusions. The following is an example `.dockerignore` file that uses this
515515
mechanism:
516516

517-
```gitignore
517+
```text
518518
*.md
519519
!README.md
520520
```
@@ -527,7 +527,7 @@ The placement of `!` exception rules influences the behavior: the last line of
527527
the `.dockerignore` that matches a particular file determines whether it's
528528
included or excluded. Consider the following example:
529529

530-
```gitignore
530+
```text
531531
*.md
532532
!README*.md
533533
README-secret.md
@@ -538,7 +538,7 @@ No markdown files are included in the context except README files other than
538538

539539
Now consider this example:
540540

541-
```gitignore
541+
```text
542542
*.md
543543
README-secret.md
544544
!README*.md

0 commit comments

Comments
 (0)