From 2977228bac86a7bc210b12f9192c23f6866b04ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 18 Jan 2023 13:51:06 +0100 Subject: [PATCH] build: Remove /enclave-cc from the final image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was also added by fcbf7c924d280fe328aa96de09ab9ce72bf5ccb9 and causes a /enclave-cc directory, with the enclave-cc source code, vendors, whatnot to be left as part of the agent-instance.tar. Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/build/agent-enclave-bundle/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/build/agent-enclave-bundle/Dockerfile b/tools/packaging/build/agent-enclave-bundle/Dockerfile index 828ede87..0b270f23 100644 --- a/tools/packaging/build/agent-enclave-bundle/Dockerfile +++ b/tools/packaging/build/agent-enclave-bundle/Dockerfile @@ -80,7 +80,7 @@ WORKDIR /run/rune RUN tar xzf /run/enclave-agent/occlum_instance/occlum_instance.tar.gz && \ rm -rf /run/enclave-agent -RUN rm -rf $HOME/.cargo $HOME/.rustup +RUN rm -rf $HOME/.cargo $HOME/.rustup /enclave-cc RUN apt-get purge -y wget gnupg tzdata jq occlum occlum-toolchains-glibc make binutils libfuse2 libfuse3-3 ca-certificates rsync build-essential cmake git && apt-get autoremove -y RUN echo "/run/rune/occlum_instance/build/lib/" | tee /etc/ld.so.conf.d/occlum-pal.conf && \ echo "/opt/sgxsdk/lib64" | tee /etc/ld.so.conf.d/sgxsdk.conf && \