From d122a9a49a7713f83a222bcc4253ceaf72f54e7f Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 4 Apr 2022 11:05:58 +0800 Subject: [PATCH] [TD-14498]: remove residual file from Docker image (#11240) for 2.4 --- packaging/docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/docker/Dockerfile b/packaging/docker/Dockerfile index 1f3bd503f6..26349e2576 100644 --- a/packaging/docker/Dockerfile +++ b/packaging/docker/Dockerfile @@ -9,8 +9,10 @@ RUN echo ${pkgFile} && echo ${dirName} COPY ${pkgFile} /root/ RUN tar -zxf ${pkgFile} -WORKDIR /root/${dirName}/ -RUN /bin/bash install.sh -e no +WORKDIR /root/ +RUN cd /root/${dirName}/ && /bin/bash install.sh -e no && cd /root +RUN rm /root/${pkgFile} +RUN rm -rf /root/${dirName} ENV DEBIAN_FRONTEND=noninteractive RUN apt-get clean && apt-get update && apt-get install -y locales tzdata netcat && locale-gen en_US.UTF-8 -- GitLab