Dockerfile 657 B

1234567891011121314151617
  1. FROM ubuntu:16.04
  2. RUN apt update && apt install -y build-essential sudo ocaml automake autoconf libtool wget python libssl-dev git protobuf-compiler libprotobuf-dev cmake curl libcurl4-openssl-dev lsb-release debhelper
  3. WORKDIR /root
  4. RUN git clone https://github.com/intel/linux-sgx.git
  5. WORKDIR linux-sgx
  6. RUN git checkout sgx_2.6
  7. RUN ./download_prebuilt.sh
  8. RUN make
  9. RUN make sdk_install_pkg
  10. RUN make deb_pkg
  11. WORKDIR linux/installer/bin
  12. RUN echo -e "no\n/opt/intel" | ./sgx_linux_x64_sdk_*.bin
  13. WORKDIR ../deb
  14. RUN dpkg -i libsgx-enclave-common_*.deb libsgx-urts_*.deb
  15. RUN dpkg -i libsgx-enclave-common-dev_*.deb
  16. COPY start-aesmd /usr/local/sbin/
  17. WORKDIR /root