From c4d2b34d13ac61d6c2b9caa2270763259e6c788c Mon Sep 17 00:00:00 2001 From: Charles Chan Date: Sun, 12 Jul 2015 19:10:25 -0700 Subject: [PATCH] Split apt-get example onto multiple lines. Use extra spaces to align the code block. Signed-off-by: Charles Chan --- docs/articles/dockerfile_best-practices.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/articles/dockerfile_best-practices.md b/docs/articles/dockerfile_best-practices.md index 19d4fc41c8..642f043602 100644 --- a/docs/articles/dockerfile_best-practices.md +++ b/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