Dockerfile 679 B

12345678910111213141516171819
  1. FROM sgx
  2. RUN apt update
  3. RUN apt install -y gawk python-pip
  4. RUN pip install protobuf
  5. RUN pip install pycrypto
  6. RUN sudo apt install -y libprotobuf-c-dev protobuf-c-compiler bison python3-pip
  7. WORKDIR /root
  8. RUN git clone https://github.com/oscarlab/graphene
  9. WORKDIR graphene
  10. RUN git submodule init
  11. RUN git submodule update
  12. RUN cd Pal/src/host/Linux-SGX/sgx-driver && git checkout 30d4b940
  13. COPY isgx_version.h Pal/src/host/Linux-SGX/sgx-driver/
  14. RUN mkdir Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver
  15. COPY sgx_user.h Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver/
  16. RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072
  17. #RUN make SGX=1
  18. #WORKDIR /root