-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
46 lines (39 loc) · 1.49 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:20.04
MAINTAINER "Andrei Kucharavy <[email protected]>"
# change to continuumio/anaconda
RUN export DEBIAN_FRONTEND=noninteractive
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN cd /home
# install python build dependencies and system python:
RUN apt-get update
RUN apt-get -yq install python
RUN apt-get -yq install build-essential
RUN apt-get -yq install libsuitesparse-dev
RUN apt-get -yq install wget
RUN apt-get -yq install git
RUN apt-get -yq install curl
RUN apt-get -yq install unzip
RUN apt-get -yq install lsof
RUN apt-get update
RUN apt-get -yq install libsm6 libxrender1 libfontconfig1 libglib2.0-0
# install minicoda
ADD https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh miniconda.sh
RUN bash miniconda.sh -b -p /miniconda
ENV PATH="/miniconda/bin:${PATH}"
RUN hash -r
RUN conda config --set always_yes yes --set changeps1 no
RUN conda update -q conda
RUN rm miniconda.sh
# create and activate conda environment
RUN conda create -q -n run-environement python="3.8" numpy scipy matplotlib
RUN /bin/bash -c "source activate run-environement"
RUN conda install python="3.8" cython scikit-learn
# clone the project into the test environement:
ADD https://github.com/chiffa/BioFlow/archive/master.zip BioFlpyrtgow.zip
RUN unzip BioFlow.zip
RUN rm BioFlow.zip
RUN apt-get install -yq nano
# install project requirements:
RUN which pip
RUN cat /BioFlow-master/requirements.txt
RUN cd /BioFlow-master/; pip install -r requirements.txt