aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ca4cb62
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+FROM centos:6
+RUN yum install -y epel-release && yum clean -y all
+RUN yum install -y \
+ autoconf \
+ automake \
+ cmake \
+ gcc \
+ gcc-c++ \
+ gcc-gfortran \
+ help2man \
+ libX11-devel \
+ libxml2-devel \
+ patchelf \
+ perl \
+ rsync \
+ && yum clean -y all
+WORKDIR /build
+COPY spm ./
+COPY include ./include
+RUN curl -L https://github.com/jhunkeler/reloc/archive/master.tar.gz | tar zxf - \
+ && cd reloc-* \
+ && mkdir -p build \
+ && cd build \
+ && cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ && make \
+ && make install \
+ && cd /build