Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #FROM ubuntu:20.04
  2. FROM docker.m.daocloud.io/ubuntu:20.04
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. RUN echo "Install Python v3.8:" \
  5. && apt-get update \
  6. && apt-get install -y \
  7. python3-dev \
  8. python3-pip \
  9. python3-setuptools \
  10. python3-wheel \
  11. && pip3 config set global.index-url https://mirror.baidu.com/pypi/simple \
  12. && pip3 config set global.extra-index-url https://pypi.tuna.tsinghua.edu.cn/simple \
  13. && pip3 install --upgrade --quiet pip setuptools \
  14. && python3 --version
  15. # --- install requirements ---
  16. RUN echo "Install Python Requirements:" \
  17. && pip3 install --default-timeout=1800 --no-cache-dir \
  18. # --- for base --- \
  19. cython==3.0.0a9 \
  20. pyinstaller==4.10 \
  21. # --- for libraries --- \
  22. pycrypto==2.6.1 \
  23. paramiko==2.7.2 \
  24. apscheduler==3.7.0 \
  25. # --- for client --- \
  26. requests==2.25.1 \
  27. redis==3.5.3 \
  28. pymongo==3.11.2 \
  29. influxdb==5.3.1 \
  30. pymysql==0.9.3 \
  31. peewee==3.17.0 \
  32. SQLAlchemy==1.4.30 \
  33. paho-mqtt==1.6.1 \
  34. && echo "End."
  35. RUN echo "Debug Tools:" \
  36. && apt-get update \
  37. && apt-get install -y inetutils-ping iproute2 net-tools wget unzip git bash