diff --git a/Dockerfile b/Dockerfile index 7fcdbbf..1fb551b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,11 @@ FROM ubuntu:18.04 RUN set -x \ && apt-get update \ - && apt-get install -y libopenblas-dev libreadline-dev libuv1-dev libssl-dev \ - && apt-get clean - -RUN set -x \ - && apt-get install -y git wget \ - && apt-get install -y zlib1g-dev \ - && apt-get install -y cmake g++ \ - && apt-get clean \ + # Install dependencies for Ravi, Torch, luaossl + # libgomp1 is OpenMP library needed by Torch + && apt-get install -y libopenblas-dev libreadline-dev libuv1-dev libssl-dev libgomp1 \ + # Install build tools + && apt-get install -y git wget zlib1g-dev cmake g++ \ && mkdir -p ${HOME}/sources \ && cd ${HOME}/sources \ && git clone https://github.com/dibyendumajumdar/Suravi.git \ @@ -17,5 +14,7 @@ RUN set -x \ && git submodule update --init --recursive \ && sh build/linux_build.sh \ && rm -rf ${HOME}/sources \ - && apt-get remove -y --purge git wget cmake g++ + && apt-get remove -y --purge git wget cmake g++ \ + && apt-get autoremove -y \ + && apt-get autoclean