Dockerfile 645 B

1234567891011121314151617181920
  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. WORKDIR /root
  7. RUN git clone https://github.com/oscarlab/graphene
  8. WORKDIR graphene
  9. RUN git checkout 58e6087
  10. RUN git submodule init
  11. RUN git submodule update
  12. RUN cd Pal/src/host/Linux-SGX/sgx-driver && git checkout 30d4b940
  13. WORKDIR /root/graphene
  14. COPY isgx_version.h Pal/src/host/Linux-SGX/sgx-driver/
  15. RUN mkdir Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver
  16. COPY sgx_user.h Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver/
  17. RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072
  18. RUN make SGX=1
  19. WORKDIR /root