File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ ERROR: failed to solve: failed to compute cache key: failed to calculate checksu
411411You can use a ` .dockerignore ` file to exclude files or directories from the
412412build context.
413413
414- ``` gitignore
414+ ``` text
415415# .dockerignore
416416node_modules
417417bar
@@ -471,7 +471,7 @@ on GitHub, which contains the source code.
471471
472472The 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
514514exclusions. The following is an example ` .dockerignore ` file that uses this
515515mechanism:
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
527527the ` .dockerignore ` that matches a particular file determines whether it's
528528included or excluded. Consider the following example:
529529
530- ``` gitignore
530+ ``` text
531531*.md
532532!README*.md
533533README-secret.md
@@ -538,7 +538,7 @@ No markdown files are included in the context except README files other than
538538
539539Now consider this example:
540540
541- ``` gitignore
541+ ``` text
542542*.md
543543README-secret.md
544544!README*.md
You can’t perform that action at this time.
0 commit comments