add ml jupyter

This commit is contained in:
cdllp2 2022-10-11 13:37:44 +08:00
parent 3c770a7843
commit 5d154021bb

View File

@ -5,19 +5,25 @@ RUN apt-get update && apt install -y lsof
RUN mkdir -p /examples/ && git clone https://github.com/tencentmusic/cube-studio.git && cp -r cube-studio/aihub/machine-learning/* /examples/ && rm -rf cube-studio
# 爬虫包
RUN pip install pyquery requests lxml beautifulsoup4
RUN pip install pyquery requests lxml beautifulsoup4 \
&& rm -rf /tmp/* /var/tmp/* /root/.cache
# 数据库查询包
RUN pip install pymysql pika presto-python-client neo4j elasticsearch psycopg2-binary sqlalchemy torndb kafka paramiko prometheus_client oss2 happybase clickhouse-sqlalchemy clickhouse-driver pymongo presto-python-client
RUN pip install pymysql pika presto-python-client neo4j elasticsearch psycopg2-binary sqlalchemy torndb kafka paramiko prometheus_client oss2 happybase clickhouse-sqlalchemy clickhouse-driver pymongo presto-python-client \
&& rm -rf /tmp/* /var/tmp/* /root/.cache
# 数据挖掘包
RUN pip install numpy pandas sklearn wheel SciPy pyarrow Pillow PyML MDP Theano opencv-python plotly tqdm optimization gbdt xgboost lightgbm
RUN pip install numpy pandas sklearn wheel SciPy pyarrow Pillow PyML MDP Theano opencv-python plotly tqdm optimization gbdt xgboost lightgbm \
&& rm -rf /tmp/* /var/tmp/* /root/.cache
# 可视化包
RUN pip install matplotlib pyecharts
RUN pip install matplotlib pyecharts \
&& rm -rf /tmp/* /var/tmp/* /root/.cache
# 数据服务包
RUN pip install gevent flask asyncio uvloop aiohttp grpcio protobuf grpcio-tools pysnooper
RUN pip install gevent flask asyncio uvloop aiohttp grpcio protobuf grpcio-tools pysnooper \
&& rm -rf /tmp/* /var/tmp/* /root/.cache \
# 拷贝examples
COPY examples/* /examples/