-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy patha
More file actions
33 lines (26 loc) · 1.21 KB
/
a
File metadata and controls
33 lines (26 loc) · 1.21 KB
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
# 基础镜像信息
FROM ubuntu:16.04
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse" > /etc/apt/sources.list
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse" >> /etc/apt/sources.list
RUN apt-key update && apt-get update && apt-get install -y wget
RUN apt-get remove python-pip python3-pip
RUN apt-get install -y python3 python
RUN wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
RUN python get-pip.py
RUN python3 get-pip.py
RUN apt-get install -y \
python3-numpy python3-nose python3-pandas python-h5py \
python python-numpy python-nose python-pandas python3-h5py \
pep8 python-wheel python-sphinx
# 创建目录
RUN mkdir -p /usr/local/ph
# 拷贝文件
ADD ./ /usr/local/ph
# 设置工作目录
WORKDIR /usr/local/ph
# 安装requirements
RUN /usr/local/bin/pip install --no-cache-dir -r requirements.txt
CMD ["python3", "./main.py"]
EXPOSE 5000