Dockerfile 1.2 KB

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