Dockerfile 562 B

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