Explorar o código

Split apt-get example onto multiple lines. Use extra spaces to align the code block.

Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>
Charles Chan %!s(int64=10) %!d(string=hai) anos
pai
achega
c4d2b34d13
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      docs/articles/dockerfile_best-practices.md

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

@@ -154,7 +154,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