Skip to content

Commit

Permalink
issue #11 Added libgomp1 as package to be installed as torch needs it…
Browse files Browse the repository at this point in the history
… and unless explicitly installed it gets removed by autoremove
  • Loading branch information
dibyendumajumdar committed Jan 12, 2020
1 parent f4abc75 commit 322e363
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ 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 \
&& cd ${HOME}/sources/Suravi \
&& 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

0 comments on commit 322e363

Please sign in to comment.