-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.14 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
# run as:
# docker build -f Dockerfile -t gradienttool .
# base everything on a recent Ubuntu
FROM debian:latest
# get system packages up to date then install a basic python
# note the prerequisites for scipy updating - liblapack-dev and gfortran
# in turn, matplotlib when pipped needs pkg-config and libfreetype6-dev
RUN apt-get update && apt-get -y upgrade && \
apt-get -y install python3 python3-dev python3-setuptools liblapack-dev gfortran build-essential \
pkg-config libfreetype6-dev ttf-bitstream-vera
# set up pip and grab stuff through that, to make all the installations homogeneous
RUN easy_install3 pip
RUN pip install cython numpy scipy matplotlib pandas seaborn
# this needs to be separate as the primadonna of a package needs to see numpy installed
RUN pip install GPy
#apparently now this needs installation too. just gonna do this at the end just in case
RUN apt-get -y install python3-tk
# set up code
RUN mkdir /scripts
COPY scripts/ /scripts/
#set up analysis crash text file
RUN apt-get -y install git
RUN git clone https://github.com/cyversewarwick/analysis_crash.git
ENTRYPOINT ["bash", "/scripts/gradienttool_tarwrapper.sh"]