[dockerfile] More clean up to reduce docker image size

This commit is contained in:
Zheng, Qi 2023-06-12 16:13:57 +08:00 committed by volcano
parent 6048d1fcc1
commit 1a5dcd87be
2 changed files with 4 additions and 4 deletions

@ -141,7 +141,7 @@ ENV PATH="/opt/occlum/build/bin:/usr/local/occlum/bin:$PATH"
# Install glibc # Install glibc
WORKDIR /root/occlum/tools/toolchains 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 # Install Occlum Golang toolchain
WORKDIR /root/occlum/tools/toolchains WORKDIR /root/occlum/tools/toolchains
@ -187,7 +187,7 @@ RUN cd aecs_client && ./build.sh && cd .. && rm -rf aecs_client
# Install GRPC RATLS # Install GRPC RATLS
WORKDIR /root/occlum/tools/toolchains 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 # Build and install Occlum
WORKDIR /root WORKDIR /root

@ -148,7 +148,7 @@ ENV PATH="/opt/occlum/build/bin:/usr/local/occlum/bin:$PATH"
# Install glibc # Install glibc
WORKDIR /root/occlum/tools/toolchains 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 # Install Occlum Golang toolchain
WORKDIR /root/occlum/tools/toolchains WORKDIR /root/occlum/tools/toolchains
@ -194,7 +194,7 @@ RUN cd aecs_client && ./build.sh && cd .. && rm -rf aecs_client
# Install GRPC RATLS # Install GRPC RATLS
WORKDIR /root/occlum/tools/toolchains 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 # Install Occlum
WORKDIR /root WORKDIR /root