Make the swupd update always be the layer two

To help analyze the container image size by layers, assume
each container image be comprised of:
Layer 1: clearlinux:latest
Layer 2: swupd update
Other layers: the container configurations

With this, we can continue to optimize layer size accordingly.

Signed-off-by: Qi Zheng <qi.zheng@intel.com>
This commit is contained in:
Qi Zheng
2019-05-15 16:31:01 +08:00
committed by qzheng527
parent d1e5187bd9
commit 8a8844c3e6
15 changed files with 41 additions and 36 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
FROM clearlinux:latest
MAINTAINER hongzhan.chen@intel.com
RUN swupd update $swupd_args && \
swupd bundle-add python3-basic $swupd_args
RUN rm -rf /var/lib/swupd
ARG swupd_args
RUN swupd update --no-boot-update $swupd_args
RUN swupd bundle-add python3-basic $swupd_args \
&& rm -rf /var/lib/swupd/*
CMD ["python3"]