FROM ubuntu:20.04 RUN sed -i 's#archive.ubuntu.com#mirrors.aliyun.com#g' /etc/apt/sources.list \ && sed -i 's#security.ubuntu.com#mirrors.aliyun.com#g' /etc/apt/sources.list RUN apt-get update -y \ &&apt-get -y install libsasl2-modules libsasl2-dev python3 python3-pip\ &&pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple\ &&pip install flask pyhive thrift pandas flask_cors pymysql thrift_sasl COPY . /usr/share/yili-portal ENV YILI_PORT 5000 WORKDIR /usr/share/yili-portal/ EXPOSE 5000 CMD ["/bin/bash","./start.sh"]