|
@@ -29,10 +29,19 @@ RUN chown aesmd.aesmd /var/run/aesmd
|
|
|
RUN chmod 755 /usr/local/sbin/start-aesmd
|
|
|
ENTRYPOINT ["/usr/local/sbin/start-aesmd"]
|
|
|
|
|
|
-FROM sgx
|
|
|
+# Remove the SGX SDK sources from the image
|
|
|
+FROM sgx AS sgx_no_source
|
|
|
WORKDIR /root
|
|
|
+RUN rm -rf linux-sgx intel-sgx-ssl
|
|
|
+
|
|
|
+FROM scratch
|
|
|
+# Copy the sgx_no_source filesystem; this loses the history, but the
|
|
|
+# history contained the multi-GB SGX SDK sources that we have since
|
|
|
+# removed, so that's actually what we want.
|
|
|
+COPY --from=sgx_no_source / /
|
|
|
RUN apt update && apt install -y libboost-dev libboost-thread-dev \
|
|
|
numactl python3-numpy python3-yaml
|
|
|
+WORKDIR /root
|
|
|
COPY . teems
|
|
|
WORKDIR /root/teems
|
|
|
RUN make -j`nproc` App/teems Enclave/enclave.so Client/clients
|