From 1a5dcd87be1ea91036152f81122bcad59ed00d9f Mon Sep 17 00:00:00 2001 From: "Zheng, Qi" Date: Mon, 12 Jun 2023 16:13:57 +0800 Subject: [PATCH] [dockerfile] More clean up to reduce docker image size --- tools/docker/Dockerfile.anolis8.8 | 4 ++-- tools/docker/Dockerfile.ubuntu20.04 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/docker/Dockerfile.anolis8.8 b/tools/docker/Dockerfile.anolis8.8 index 0bc3dbcf..b290d400 100644 --- a/tools/docker/Dockerfile.anolis8.8 +++ b/tools/docker/Dockerfile.anolis8.8 @@ -141,7 +141,7 @@ ENV PATH="/opt/occlum/build/bin:/usr/local/occlum/bin:$PATH" # Install glibc WORKDIR /root/occlum/tools/toolchains -RUN cd glibc && ./build.sh && cd .. && rm -rf glibc +RUN cd glibc && ./build.sh && cd .. && rm -rf glibc && rm -rf /tmp/glibc* # Install Occlum Golang toolchain WORKDIR /root/occlum/tools/toolchains @@ -187,7 +187,7 @@ RUN cd aecs_client && ./build.sh && cd .. && rm -rf aecs_client # Install GRPC RATLS WORKDIR /root/occlum/tools/toolchains -RUN cd grpc_ratls && ./build.sh && cd .. && rm -rf grpc_ratls +RUN cd grpc_ratls && ./build.sh && cd .. && rm -rf grpc_ratls && rm -rf /tmp/grpc* # Build and install Occlum WORKDIR /root diff --git a/tools/docker/Dockerfile.ubuntu20.04 b/tools/docker/Dockerfile.ubuntu20.04 index b5810144..31afe643 100644 --- a/tools/docker/Dockerfile.ubuntu20.04 +++ b/tools/docker/Dockerfile.ubuntu20.04 @@ -148,7 +148,7 @@ ENV PATH="/opt/occlum/build/bin:/usr/local/occlum/bin:$PATH" # Install glibc WORKDIR /root/occlum/tools/toolchains -RUN cd glibc && ./build.sh && cd .. && rm -rf glibc +RUN cd glibc && ./build.sh && cd .. && rm -rf glibc && rm -rf /tmp/glibc* # Install Occlum Golang toolchain WORKDIR /root/occlum/tools/toolchains @@ -194,7 +194,7 @@ RUN cd aecs_client && ./build.sh && cd .. && rm -rf aecs_client # Install GRPC RATLS WORKDIR /root/occlum/tools/toolchains -RUN cd grpc_ratls && ./build.sh && cd .. && rm -rf grpc_ratls +RUN cd grpc_ratls && ./build.sh && cd .. && rm -rf grpc_ratls && rm -rf /tmp/grpc* # Install Occlum WORKDIR /root