From e3c8d7ae94cf431609e68b8d6f5d03ec83dde0ab Mon Sep 17 00:00:00 2001 From: hezijie Date: Thu, 27 Feb 2025 14:24:12 +0800 Subject: [PATCH] correct yum clean to tdnf clean --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 68a2a41..3635787 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,6 +91,7 @@ ENV TFLINTENV_DEFAULT_VERSION=$TFLINT_VERSION ENV TFLINTENV_HOME_DIR=${HOME_DIR}/tflintenv # Update image, install and configure system-wide software RUN tdnf install -y ca-certificates zip unzip jq make git less diffutils build-essential openssh-server wget moby-cli && \ + tdnf clean all && \ pip3 install cryptography -U && \ pip install azure-cli && \ cd / && \ @@ -111,6 +112,6 @@ RUN cp /root/.gitconfig ${HOME_DIR}/.gitconfig && \ chmod -Rv a+rwX ${HOME_DIR} && \ chmod 777 ${HOME_DIR}/tfenv/bin/* && \ chmod 777 ${HOME_DIR}/pkenv/bin/* && \ - rm -r /tmp/* && \ - yum clean all + rm -r /tmp/* + ENV HOME=${HOME_DIR}