From 258d11610d8a4276ec2f2d719e5deff5c3bf1c34 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 4 Apr 2022 11:10:30 +0800 Subject: [PATCH] [TD-14498]: remove residual file from Docker image (#11241) 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