forked from HelikarLab/candis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (36 loc) · 1.34 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
FROM ubuntu:xenial
LABEL maintainer [email protected]
RUN apt-get update --fix-missing
RUN apt-get install -y --no-install-recommends \
apt-transport-https \
gcc \
git \
python3-dev \
python3-pip \
python3-tk \
software-properties-common \
graphviz-dev \
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
RUN apt-get install -y --no-install-recommends oracle-java8-installer
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
RUN add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
RUN apt-get update
RUN apt-get install -y r-base
RUN pip3 install --upgrade pip
RUN pip3 install setuptools
RUN pip3 install wheel
RUN pip3 install numpy
RUN pip3 install pyyaml \
&& git clone https://github.com/HelikarLab/candis.git
# && pip3 install -r ./candis/requirements.txt
# && pip3 install ./candis
# && rm -rf /var/lib/apt/lists/*
# && rm -rf /var/cache/oracle-jdk8-installer
COPY . /app
WORKDIR /app
RUN pip3 install --no-binary javabridge -r requirements.txt
RUN pip3 install .
EXPOSE 5000
CMD ["candis"]