Dockerfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # --- for server --- \
  34. typesystem==0.2.5 \
  35. aiohttp==3.7.3 \
  36. responder==2.0.7 \
  37. uvloop==0.14.0 \
  38. uvicorn==0.13.2 \
  39. supervisor==4.2.1 \
  40. websocket-client==0.58.0 \
  41. && echo "End."
  42. RUN echo "Debug Tools:" \
  43. && apt-get update \
  44. && apt-get install -y inetutils-ping iproute2 net-tools wget unzip git bash