Dockerfile 579 B

1234567891011121314151617
  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://github.com/oscarlab/graphene
  7. WORKDIR graphene
  8. RUN git submodule init
  9. RUN git submodule update
  10. RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072
  11. WORKDIR Pal/src/host/Linux-SGX/sgx-driver
  12. RUN mkdir linux-sgx-driver
  13. COPY sgx_user.h ./linux-sgx-driver/
  14. WORKDIR /root/graphene
  15. RUN make SGX=1 ISGX_DRIVER_PATH=/root/graphene/Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver
  16. WORKDIR /root