-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
50 lines (32 loc) · 1.26 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
47
48
49
50
# IDEPA Dockerfile
# Version 1.0
# Base ubuntu:16.04
# IDEPA Dockerfile
# Version 1.0
FROM continuumio/anaconda3
WORKDIR /IDEPA-XMBD
# 修改源为国内源
RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update --fix-missing
# 更新系统
# 安装apt-utils(允许安装第三方软件)、sudo、vim、wget(下载文件)
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y apt-utils sudo vim wget openssh-server
RUN apt-get update
RUN apt-get install -y --no-install-recommends build-essential cmake git python-dev python-pip
# 修改ssh配置文件,文件位置/etc/ssh/sshd_config,添加允许所有主机连接,
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
RUN echo 'sshd:ALL' >> /etc/hosts.aldlow
# Create the environment:
COPY . /IDEPA-XMBD/
RUN conda env create -f environment.yml
SHELL ["/bin/bash", "-c"]
RUN echo "source activate reoa3" > ~/.bashrc
RUN bash /IDEPA-XMBD/source_reoa3.sh
ENV PATH /opt/conda/envs/reoa3/bin:$PATH
RUN ["/opt/conda/bin/pip" ,"install", "rpy2==3.4.5"]
RUN python /IDEPA-XMBD/r_package_install.py
CMD ["/bin/bash"]