Dockerfile 614 B

123456789101112131415161718
  1. FROM sgx
  2. RUN apt update
  3. RUN apt install -y gawk libprotobuf-c-dev protobuf-c-compiler bison python3-pip
  4. RUN pip3 install protobuf
  5. WORKDIR /root
  6. RUN git clone https://git-crysp.uwaterloo.ca/miti/graphene
  7. WORKDIR graphene
  8. RUN git checkout oldmirror
  9. RUN git submodule init
  10. RUN git submodule update
  11. RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072
  12. WORKDIR Pal/src/host/Linux-SGX/sgx-driver
  13. RUN mkdir linux-sgx-driver
  14. COPY sgx_user.h ./linux-sgx-driver/
  15. WORKDIR /root/graphene
  16. RUN make SGX=1 ISGX_DRIVER_PATH=/root/graphene/Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver
  17. WORKDIR /root