瀏覽代碼

Merge pull request #14571 from charleswhchan/patch-2

Documentation: Split apt-get example onto multiple lines
Sebastiaan van Stijn 10 年之前
父節點
當前提交
8c77e39627
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      docs/articles/dockerfile_best-practices.md

+ 4 - 1
docs/articles/dockerfile_best-practices.md

@@ -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