-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.centos
30 lines (25 loc) · 1.08 KB
/
Dockerfile.centos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM centos:7
RUN set -x && \
yum -y update && \
yum -y install epel-release && \
yum -y install readline-devel openblas-devel openssl-devel lapack-devel libuv-devel libgomp && \
yum clean all
RUN set -x && \
yum -y install git && \
mkdir -p ${HOME}/sources && \
cd ${HOME}/sources && \
git clone --recurse-submodules https://github.com/dibyendumajumdar/Suravi.git && \
yum -y install cmake3 && \
yum -y install centos-release-scl && \
yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ make && \
cd ${HOME}/sources/Suravi && \
scl enable devtoolset-8 -- bash build/centos_build.sh /Software/ravi && \
rm -rf ${HOME}/sources/ && \
yum -y remove devtoolset-8-gcc devtoolset-8-gcc-c++ make && \
yum -y remove cmake3 git && \
yum clean all
ENV PATH /Software/ravi/bin:${PATH}
ENV LD_LIBRARY_PATH /Software/ravi/lib64:${LD_LIBRARY_PATH}
ENV LUA_PATH /Software/ravi/share/lua/5.3/?.lua;/Software/ravi/share/lua/5.3/?/init.lua;./?.lua;./?/init.lua
ENV LUA_CPATH /Software/ravi/lib64/?.so;/Software/ravi/lib64/lib?.so
WORKDIR /Software/ravi