-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1.07 KB
/
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
FROM ubuntu:18.04
LABEL maintainer="kpsarakis94@gmail.com"
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
openjdk-8-jdk gcc g++ make parallel maven subversion patch docker.io dos2unix wget
# Set environment variables
ENV JAVA_VER 8
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-amd64
# Create project directory
RUN mkdir /home/valentine-benchmark
# Copy data to directory
COPY . /home/valentine-benchmark
# Install valentine suite
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
bash ~/miniconda.sh -u -b -p /miniconda && \
eval "$(/miniconda/bin/conda shell.bash hook)" && \
conda init && \
"/miniconda/bin/conda" create -n valentine-suite python=3.8 -y --force && \
conda activate valentine-suite && \
cd /home/valentine-benchmark && \
pip install -r requirements.txt && \
python -m nltk.downloader stopwords && \
python -m nltk.downloader punkt && \
python -m nltk.downloader wordnet && \
cd algorithms/coma && \
./build_coma.sh