-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
31 lines (22 loc) · 891 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
FROM ubuntu:20.04
# Set console to not use prompts
ARG DEBIAN_FRONTEND=noninteractive
# Upgrade installed packages
RUN apt-get update && apt-get upgrade -y && apt-get clean
# Python package management and basic dependencies
RUN apt-get install -y curl python3-dev python3-distutils python3-numpy
# Upgrade pip to latest version
RUN curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py --force-reinstall && \
rm get-pip.py
# Install dependencies
RUN apt-get -y install g++ pkg-config libarmadillo-dev make build-essential autotools-dev libicu-dev libbz2-dev wget libboost-all-dev cmake ninja-build ccache
RUN mkdir /GP-GOMEA
WORKDIR /GP-GOMEA
ADD . .
RUN rm -rf build
ENV GEN=ninja
# compile the c++ project
RUN echo ">>> Compiling GP-GOMEA source code..." && make
# Test the installation
RUN echo ">>> Test installation..." && python3 test.py