Dockerfile 1.4 KB

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