Commit 37d53611 authored by caiyanming's avatar caiyanming

add miniconda docker images

Change-Id: I1b20090ceb3121876fc9ec5eeed849ce7a4fd9da
parent 9c932d58
#
# Copyright (C) 2017 C-SKY Microsystems Co., Ltd.
# Copyright (C) 2018 XueTong Tech Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
#
# Copyright (C) 2017 C-SKY Microsystems Co., Ltd.
# Copyright (C) 2018 XueTong Tech Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
#
# Copyright (C) 2017 C-SKY Microsystems Co., Ltd.
# Copyright (C) 2018 XueTong Tech Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
#
# Copyright (C) 2018 Xuetong Tech Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM ubuntu:16.04
MAINTAINER xt
WORKDIR /var/app
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" ]
This source diff could not be displayed because it is too large. You can view the blob instead.
numpy==1.14.0
pandas==0.22.0
redis==2.10.6
mysqlclient==1.3.12
mlxtend==0.12.0
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
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