From f9cec145915b355e7e46bcd80e411203f417915f Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Wed, 17 Jul 2019 12:32:58 -0700 Subject: [PATCH] Squash all RUN commands to a single line so that it results in a single docker layer. Adding a new RUN command to remove files will result in the files not being visible in the container, but users still carry the full weight of the "deleted" files. Signed-off-by: Rusty Lynch --- machine-learning/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/machine-learning/Dockerfile b/machine-learning/Dockerfile index b12f1d4..bc1fd2d 100644 --- a/machine-learning/Dockerfile +++ b/machine-learning/Dockerfile @@ -3,9 +3,8 @@ MAINTAINER marcos.simental.magana@intel.com ARG swupd_args -RUN swupd update $swupd_args -RUN swupd bundle-add machine-learning-basic R-basic R-extras - -RUN rm -rf /var/lib/swupd +RUN swupd update --no-boot-update $swupd_args \ + && swupd bundle-add machine-learning-basic R-basic R-extras \ + && rm -rf /var/lib/swupd CMD 'bash'