From edfe34df310c6872fce4fee6f12cf9176f964cb0 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Wed, 17 Jul 2019 14:20:21 -0700 Subject: [PATCH] Clean up machine-learning-ui RUN commands Squashing all RUN commands together to ensure they create a single docker layer resulting in a smaller overall image size. Signed-off-by: Rusty Lynch --- machine-learning-ui/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/machine-learning-ui/Dockerfile b/machine-learning-ui/Dockerfile index 923f0a5..b956177 100644 --- a/machine-learning-ui/Dockerfile +++ b/machine-learning-ui/Dockerfile @@ -3,10 +3,9 @@ MAINTAINER william.douglas@intel.com ARG swupd_args -RUN swupd update $swupd_args -RUN swupd bundle-add machine-learning-web-ui - -RUN rm -rf /var/lib/swupd +RUN swupd update --no-boot-update $swupd_args \ + && swupd bundle-add machine-learning-web-ui \ + && rm -rf /var/lib/swupd/* EXPOSE 8888