Commit e84abb58 authored by caiyanming's avatar caiyanming

refractor python to ai-box

Change-Id: Ic3137b3e6af962fb81013a9a591b9587768921cf
parent 87aee4e1
...@@ -14,19 +14,18 @@ ...@@ -14,19 +14,18 @@
# limitations under the License. # limitations under the License.
# #
FROM python:3 FROM registry-vpc.cn-hangzhou.aliyuncs.com/schbrain/python:3.7.0
MAINTAINER xt MAINTAINER xt
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
ENV TZ Asia/Shanghai ENV TZ Asia/Shanghai
COPY sources.list /etc/apt/sources.list
COPY requirements.txt ./ COPY requirements.txt ./
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \
&& apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 \ && apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 \
&& apt-get update \ && apt-get update \
&& apt-get install bzip2 gcc libmysqlclient-dev -y \ && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ bzip2 gcc libmysqlclient-dev r-base r-base-dev \
&& pip install --no-cache-dir --trusted-host mirrors.aliyun.com \ && pip install --no-cache-dir --trusted-host mirrors.aliyun.com \
-i http://mirrors.aliyun.com/pypi/simple -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple -r requirements.txt
......
...@@ -11,23 +11,22 @@ httpie==0.9.9 ...@@ -11,23 +11,22 @@ httpie==0.9.9
idna==2.6 idna==2.6
kiwisolver==1.0.1 kiwisolver==1.0.1
kombu==4.1.0 kombu==4.1.0
matplotlib==2.2.2
matplotlib==2.2.2
mlxtend==0.12.0 mlxtend==0.12.0
mysqlclient==1.3.12 mysqlclient==1.3.12
neo4j-driver==1.6.1 neo4j-driver==1.6.1
neotime==1.0.0 neotime==1.0.0
numpy==1.14.3
pandas==0.22.0
Pygments==2.2.0 Pygments==2.2.0
pyparsing==2.2.0 pyparsing==2.2.0
python-dateutil==2.7.3 python-dateutil==2.7.3
pytz==2018.4 pytz==2018.4
redis==2.10.6 redis==2.10.6
requests==2.18.4 requests==2.18.4
scikit-learn==0.19.1
scipy==1.1.0
six==1.11.0 six==1.11.0
urllib3==1.22 urllib3==1.22
vine==1.1.4 vine==1.1.4
xlrd==1.1.0 xlrd==1.1.0
scipy
scikit-learn
matplotlib
pandas
numpy
...@@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ...@@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \ build-essential \
libssl-dev \ libssl-dev \
libffi-dev \ libffi-dev \
libsqlite3-dev \
tk-dev \ tk-dev \
uuid-dev \ uuid-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment