mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-19 12:16:37 +00:00
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:
+5
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user