Skip to content

Commit de43d90

Browse files
dockerfile: Fix bootc container lint for centos
Remove `/var/cache`, `/var/log` and other artifacts generated by rpm install Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
1 parent 8f1aa4a commit de43d90

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ if [[ "${boot_type}" == "uki" ]]; then
204204
cp /run/packaging/initialize-sealing-tools /usr/bin/initialize-sealing-tools
205205
fi
206206

207+
# Fix linting for centos
208+
rm -rf /var/log
209+
rm -rf /var/lib
210+
rm -rf /var/cache
211+
rm -rf /run/rhsm
212+
207213
EORUN
208214
# Configure the rootfs
209215
ARG rootfs=""

0 commit comments

Comments
 (0)