-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
74 lines (67 loc) · 1.54 KB
/
Dockerfile
File metadata and controls
74 lines (67 loc) · 1.54 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# python3 em Dockerfile
#
# Pull base image.
FROM python:3.6-stretch
MAINTAINER Alex Cai "cyy0523xc@gmail.com"
# 安装基础库
# fasttext依赖于cython
# 安装auto-sklearn
# auto-sklearn依赖于swig
# auto-sklearn的依赖包:
# setuptools
# nose
# Cython
# numpy>=1.9.0,<=1.14.5
# scipy>=0.14.1
# scikit-learn>=0.19,<0.20
# xgboost>=0.80
# lockfile
# joblib
# psutil
# pyyaml
# liac-arff
# pandas
# ConfigSpace>=0.4.0,<0.5
# pynisher>=0.4.2
# pyrfr>=0.7,<0.8
# smac==0.8
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
swig \
&& curl https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt | xargs -n 1 -L 1 pip install \
&& pip install auto-sklearn \
&& pip install jieba jieba-fast fasttext \
&& pip install xgboost lightgbm catboost \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# 安装server相关服务包
# celery4.2.1暂时只支持redis2.10的版本,升级到3会报错
RUN pip --no-cache-dir install \
redis \
pyarrow \
fastparquet \
jsonschema \
PyMySQL \
mysqlclient \
celery[redis,msgpack] \
flower
# 安装server服务常用包
RUN pip --no-cache-dir install \
flask \
flask_restful \
flask_script \
flask_migrate \
flask_sqlalchemy \
Flask-Celery-Helper \
fire \
requests \
pyjwt \
passlib \
chardet \
xlrd
# 终端设置
# 默认值是dumb,这时在终端操作时可能会出现:terminal is not fully functional
ENV TERM xterm
# 解决时区问题
ENV TZ "Asia/Shanghai"