Commit 178506f2 authored by caiyanming's avatar caiyanming

refractor miniconda to python

Change-Id: I90f98caf2afe1ed9214b87d4f9037d4b101007c1
parent cc089a43
This diff is collapsed.
numpy==1.14.0
pandas==0.22.0
redis==2.10.6
mysqlclient==1.3.12
mlxtend==0.12.0
Django==2.0.5
......@@ -14,7 +14,7 @@
# limitations under the License.
#
FROM ubuntu:16.04
FROM python:3
MAINTAINER xt
WORKDIR /var/app
......@@ -23,18 +23,14 @@ ENV PATH /opt/conda/bin:$PATH
COPY sources.list /etc/apt/sources.list
COPY requirements.txt ./
COPY Miniconda3-latest-Linux-x86_64.sh ./
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \
&& apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 \
&& apt-get update \
&& apt-get install bzip2 gcc libmysqlclient-dev -y \
&& rm -rf /var/lib/apt/lists/* \
&& sh ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda \
&& rm ./Miniconda3-latest-Linux-x86_64.sh \
&& conda install pip \
&& pip install --no-cache-dir --trusted-host mirrors.aliyun.com \
-i http://mirrors.aliyun.com/pypi/simple -r requirements.txt
ENV TZ Asia/Shanghai
CMD [ "python3", "/usr/local/app/startup.py" ]
CMD [ "python", "/usr/local/app/startup.py" ]
amqp==2.2.2
billiard==3.5.0.3
celery==4.1.0
certifi==2018.4.16
chardet==3.0.4
colorama==0.3.9
cycler==0.10.0
Django==2.0.5
httpie==0.9.9
idna==2.6
kiwisolver==1.0.1
kombu==4.1.0
matplotlib==2.2.2
mlxtend==0.12.0
mysqlclient==1.3.12
numpy==1.14.3
pandas==0.22.0
Pygments==2.2.0
pyparsing==2.2.0
python-dateutil==2.7.3
pytz==2018.4
redis==2.10.6
requests==2.18.4
scikit-learn==0.19.1
scipy==1.1.0
six==1.11.0
urllib3==1.22
vine==1.1.4
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