|
a |
|
b/Dockerfile |
|
|
1 |
FROM ubuntu:16.04 |
|
|
2 |
MAINTAINER xufeng <crazyhsu9527@gmail.com> |
|
|
3 |
|
|
|
4 |
# install basic dependencies |
|
|
5 |
RUN sed -i s@/archive.ubuntu.com/@/mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.list && \ |
|
|
6 |
apt-get clean && apt-get update && apt-get install -y --no-install-recommends \ |
|
|
7 |
build-essential \ |
|
|
8 |
cmake \ |
|
|
9 |
git \ |
|
|
10 |
wget \ |
|
|
11 |
apt-transport-https \ |
|
|
12 |
libz-dev \ |
|
|
13 |
ca-certificates \ |
|
|
14 |
vim \ |
|
|
15 |
less \ |
|
|
16 |
sudo \ |
|
|
17 |
apt-utils \ |
|
|
18 |
libgfortran3 \ |
|
|
19 |
openjdk-8-jdk |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
RUN wget --no-check-certificate https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /root/miniconda3.sh && \ |
|
|
23 |
/bin/bash /root/miniconda3.sh -b -p /root/conda && \ |
|
|
24 |
rm /root/miniconda3.sh |
|
|
25 |
|
|
|
26 |
ENV PATH=/root/conda/bin:$PATH |
|
|
27 |
|
|
|
28 |
RUN conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ && \ |
|
|
29 |
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && \ |
|
|
30 |
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ && \ |
|
|
31 |
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ && \ |
|
|
32 |
conda update --all -y && conda create -n modas python=3.8 -y |
|
|
33 |
|
|
|
34 |
ENV CONDA_DEFAULT_ENV=modas |
|
|
35 |
ENV CONDA_PREFIX=/root/conda/envs/$CONDA_DEFAULT_ENV |
|
|
36 |
ENV CONDA_AUTO_UPDATE_CONDA=false |
|
|
37 |
|
|
|
38 |
RUN echo ". /root/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ |
|
|
39 |
echo "conda activate modas" >> ~/.bashrc |
|
|
40 |
|
|
|
41 |
RUN mkdir /root/.pip && echo "[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple" > /root/.pip/pip.conf && \ |
|
|
42 |
$CONDA_PREFIX/bin/pip install MODAS && \ |
|
|
43 |
conda install -y -c conda-forge r-rcppeigen r=3.6 rpy2 && \ |
|
|
44 |
conda install -y -c anaconda gcc_linux-64 gxx_linux-64 gfortran_linux-64 |
|
|
45 |
|