Docker build fails for while building image from Dockerfile.demo_cpu

I had python issues while building which I overcome by modifying dockerfile. I am getting below error in last step which builds tvm from install_tvm_cpu.sh. Did anyone try building docker image from latest Dockerfile.cpu-demo? It doesnt appear to be working.

Error

[12/12] RUN bash /install/install_tvm_cpu.sh:
#16 0.995 Cloning into ‘tvm’…
#16 3.554 Submodule ‘dlpack’ registered for path ‘3rdparty/dlpack’
#16 3.555 Submodule ‘dmlc-core’ registered for path ‘3rdparty/dmlc-core’
#16 3.556 Submodule ‘3rdparty/rang’ registered for path ‘3rdparty/rang’
#16 3.530 Cloning into ‘/usr/tvm/3rdparty/dlpack’…
#16 3.962 Cloning into ‘/usr/tvm/3rdparty/dmlc-core’…
#16 4.517 Cloning into ‘/usr/tvm/3rdparty/rang’…
#16 4.888 Submodule path ‘3rdparty/dlpack’: checked out ‘0acb731e0e43d15deee27b66f10e4c5b4e667913’
#16 4.949 Submodule path ‘3rdparty/dmlc-core’: checked out ‘3943914eed66470bd010df581e29e4dca4f7df6f’
#16 4.986 Submodule path ‘3rdparty/rang’: checked out ‘cabe04d6d6b05356fa8f9741704924788f0dd762’
#16 5.203 – The C compiler identification is GNU 7.4.0
#16 5.345 – The CXX compiler identification is GNU 7.4.0
#16 5.353 – Check for working C compiler: /usr/bin/cc
#16 5.469 – Check for working C compiler: /usr/bin/cc – works
#16 5.471 – Detecting C compiler ABI info
#16 5.570 – Detecting C compiler ABI info - done
#16 5.576 – Detecting C compile features
#16 5.843 – Detecting C compile features - done
#16 5.848 – Check for working CXX compiler: /usr/bin/c++
#16 5.953 – Check for working CXX compiler: /usr/bin/c++ – works
#16 5.954 – Detecting CXX compiler ABI info
#16 6.059 – Detecting CXX compiler ABI info - done
#16 6.064 – Detecting CXX compile features
#16 6.510 – Detecting CXX compile features - done
#16 6.519 – Performing Test SUPPORT_CXX11
#16 6.654 – Performing Test SUPPORT_CXX11 - Success
#16 6.670 – Build with RPC support…
#16 6.670 – Build with Graph runtime support…
#16 6.720 – Build VTA runtime with target: sim
#16 6.977 – Build with SGX support (SIM)
#16 6.978 – Use llvm-config=llvm-config-6.0
#16 7.074 – /usr/lib/llvm-6.0/include
#16 7.074 – Found LLVM_INCLUDE_DIRS=/usr/lib/llvm-6.0/include
#16 7.074 – Found LLVM_DEFINITIONS= -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
#16 7.074 – Found TVM_LLVM_VERSION=60
#16 7.075 – Build with LLVM
#16 7.075 – Set TVM_LLVM_VERSION=60
#16 7.076 – Use BLAS library /usr/lib/x86_64-linux-gnu/libopenblas.so
#16 7.076 – Build with contrib.sort
#16 7.076 – Build with contrib.hybriddump
#16 7.084 – Configuring done
#16 7.217 – Generating done
#16 7.221 – Build files have been written to: /usr/tvm/build
#16 7.286 Scanning dependencies of target sgx_edl
#16 7.298 Scanning dependencies of target vta
#16 7.302 [ 1%] Generating …/src/runtime/sgx/untrusted/tvm_u.h
#16 7.303 [ 1%] Generating /opt/rust-sgx-sdk/sgx_ustdc/libsgx_ustdc.a
#16 7.305 make[2]: /opt/sgxsdk/bin/x64/sgx_edger8r: Command not found
#16 7.305 make[2]: *** […/src/runtime/sgx/untrusted/tvm_u.h] Error 127
#16 7.305 CMakeFiles/sgx_edl.dir/build.make:61: recipe for target ‘…/src/runtime/sgx/untrusted/tvm_u.h’ failed
#16 7.305 make[2]: *** Waiting for unfinished jobs…
#16 7.306 /bin/sh: 1: cd: can’t cd to /opt/rust-sgx-sdk/sgx_ustdc
#16 7.306 make[2]: *** [/opt/rust-sgx-sdk/sgx_ustdc/libsgx_ustdc.a] Error 2
#16 7.306 CMakeFiles/sgx_edl.dir/build.make:67: recipe for target ‘/opt/rust-sgx-sdk/sgx_ustdc/libsgx_ustdc.a’ failed
#16 7.307 make[1]: *** [CMakeFiles/sgx_edl.dir/all] Error 2
#16 7.307 make[1]: *** Waiting for unfinished jobs…
#16 7.307 CMakeFiles/Makefile2:717: recipe for target ‘CMakeFiles/sgx_edl.dir/all’ failed
#16 7.318 [ 2%] Building CXX object CMakeFiles/vta.dir/vta/src/runtime.cc.o
#16 7.318 [ 2%] Building CXX object CMakeFiles/vta.dir/vta/src/device_api.cc.o
#16 7.318 [ 2%] Building CXX object CMakeFiles/vta.dir/vta/src/sim/sim_driver.cc.o
#16 11.10 [ 3%] Linking CXX shared library libvta.so
#16 11.19 [ 3%] Built target vta
#16 11.19 make: *** [all] Error 2
#16 11.19 Makefile:129: recipe for target ‘all’ failed


executor failed running [/bin/sh -c bash /install/install_tvm_cpu.sh]: exit code: 2