FROM sgx RUN apt update RUN apt install -y gawk libprotobuf-c-dev protobuf-c-compiler bison python3-pip RUN pip3 install protobuf WORKDIR /root RUN git clone https://github.com/oscarlab/graphene WORKDIR graphene RUN git checkout c0bc728 RUN git submodule init RUN git submodule update RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072 WORKDIR Pal/src/host/Linux-SGX/sgx-driver RUN mkdir linux-sgx-driver COPY sgx_user.h ./linux-sgx-driver/ WORKDIR /root/graphene RUN make SGX=1 ISGX_DRIVER_PATH=/root/graphene/Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver WORKDIR /root