mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-11-20 12:59:15 +00:00
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:
committed by
William Douglas
parent
7bc8f65723
commit
f9cec14591
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user