FROM ubuntu:16.04 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 WORKDIR /root RUN git clone https://github.com/intel/linux-sgx.git WORKDIR linux-sgx RUN git checkout sgx_2.6 RUN ./download_prebuilt.sh RUN make RUN make sdk_install_pkg RUN make deb_pkg WORKDIR linux/installer/bin RUN echo -e "no\n/opt/intel" | ./sgx_linux_x64_sdk_*.bin WORKDIR ../deb RUN dpkg -i libsgx-enclave-common_*.deb libsgx-urts_*.deb RUN dpkg -i libsgx-enclave-common-dev_*.deb COPY start-aesmd /usr/local/sbin/ WORKDIR /root