We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c4ecdb + 2d047ea commit 2e14cddCopy full SHA for 2e14cdd
frontend/dockerfile/docs/reference.md
@@ -529,14 +529,14 @@ In the *shell* form you can use a `\` (backslash) to continue a single
529
RUN instruction onto the next line. For example, consider these two lines:
530
531
```dockerfile
532
-RUN /bin/bash -c 'source $HOME/.bashrc; \
+RUN /bin/bash -c 'source $HOME/.bashrc && \
533
echo $HOME'
534
```
535
536
Together they are equivalent to this single line:
537
538
539
-RUN /bin/bash -c 'source $HOME/.bashrc; echo $HOME'
+RUN /bin/bash -c 'source $HOME/.bashrc && echo $HOME'
540
541
542
To use a different shell, other than '/bin/sh', use the *exec* form passing in
0 commit comments