mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #14571 from charleswhchan/patch-2
Documentation: Split apt-get example onto multiple lines
This commit is contained in:
commit
8c77e39627
1 changed files with 4 additions and 1 deletions
|
@ -158,7 +158,10 @@ updated, use `apt-get install -y foo` and it will update automatically.
|
|||
|
||||
* Do write instructions like:
|
||||
|
||||
RUN apt-get update && apt-get install -y package-bar package-foo package-baz
|
||||
RUN apt-get update && apt-get install -y \
|
||||
package-bar \
|
||||
package-baz \
|
||||
package-foo
|
||||
|
||||
Writing the instruction this way not only makes it easier to read
|
||||
and maintain, but also, by including `apt-get update`, ensures that the cache
|
||||
|
|
Loading…
Add table
Reference in a new issue