| FROM ubuntu:18.04 |
| |
| ENV SGX_DOWNLOAD_URL_BASE "https://download.01.org/intel-sgx/sgx-linux/2.7.1/distro/ubuntu18.04-server" |
| ENV LIBSGX_ENCLAVE_COMMON libsgx-enclave-common_2.7.101.3-bionic1_amd64.deb |
| ENV LIBSGX_ENCLAVE_COMMON_URL "$SGX_DOWNLOAD_URL_BASE/$LIBSGX_ENCLAVE_COMMON" |
| |
| RUN apt-get update && apt-get install -q -y \ |
| libcurl4-openssl-dev \ |
| libprotobuf-dev \ |
| wget |
| |
| RUN wget -O $LIBSGX_ENCLAVE_COMMON "$LIBSGX_ENCLAVE_COMMON_URL" && \ |
| mkdir /etc/init && \ |
| dpkg -i $LIBSGX_ENCLAVE_COMMON && \ |
| rm $LIBSGX_ENCLAVE_COMMON |
| |
| ADD release/services/tms /mesatee/ |
| ADD release/services/tms.enclave.signed.so /mesatee/ |
| ADD release/services/enclave_info.toml /mesatee/ |
| ADD release/services/auditors /mesatee/auditors |
| |
| ENTRYPOINT ["/mesatee/tms"] |