Replace binary copies with symbolic links
@@ -59,11 +59,12 @@ ENV \
AARCH64_UNKNOWN_LINUX_MUSL_OPENSSL_INCLUDE_DIR=/work/veracruz-nitro-root-enclave/musl/include \
X86_64_UNKNOWN_LINUX_MUSL_OPENSSL_INCLUDE_DIR=/work/veracruz-nitro-root-enclave/musl/include
+WORKDIR /work
RUN wget https://musl.cc/${ARCH}-linux-musl-native.tgz && \
tar zxvf ${ARCH}-linux-musl-native.tgz && \
- cp ${ARCH}-linux-musl-native/bin/${ARCH}-linux-musl-gcc /bin && \
- cp ${ARCH}-linux-musl-native/bin/${ARCH}-linux-musl-g++ /bin && \
- rm -rf ${ARCH}-linux-musl-native ${ARCH}-linux-musl-native.tgz
+ ln -sf /work/${ARCH}-linux-musl-native/bin/${ARCH}-linux-musl-gcc /usr/bin/${ARCH}-linux-musl-gcc && \
+ ln -sf /work/${ARCH}-linux-musl-native/bin/${ARCH}-linux-musl-g++ /usr/bin/${ARCH}-linux-musl-g++ && \
+ rm ${ARCH}-linux-musl-native.tgz
RUN mkdir -p /var/log/nitro_enclaves ; \
touch /var/log/nitro_enclaves/nitro_enclaves.log ; \
