-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (26 loc) · 1016 Bytes
/
Dockerfile
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
31
32
33
34
35
FROM ubuntu:bionic
# Set the working directory
WORKDIR /reproducibility
# Copy the directory contents into the container
COPY . /reproducibility
ENV DEBIAN_FRONTEND=noninteractive
# Install any needed packages specified in requirements.txt
RUN apt-get update && apt-get -y install dvipng texlive-latex-base texlive-latex-extra texlive-fonts-recommended cmake g++ python3-pip libbz2-dev libboost-all-dev wget bash \
&& pip3 install --trusted-host pypi.python.org -r requirements.txt
# Compile the software
RUN mkdir build \
&& cd build \
&& cmake .. \
&& make
# Download and compile MCL
RUN mkdir mcl-build \
&& cd mcl-build \
&& wget https://micans.org/mcl/src/mcl-14-137.tar.gz \
&& tar xvf mcl-14-137.tar.gz \
&& cd mcl-14-137 \
&& ./configure --prefix=/reproducibility/mcl-build \
&& make install
# Make the directory to hold the results
RUN mkdir /results
ENV PATH="/reproducibility/mcl-build/bin:${PATH}"
CMD cd /reproducibility/Reproducibility && bash run.sh && cp -r * /results