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 <rusty.lynch@intel.com>
This commit is contained in:
Rusty Lynch
2019-07-22 10:16:52 -07:00
committed by William Douglas
parent 7bc8f65723
commit f9cec14591
+3 -4
View File
@@ -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'