Dockerfile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #FROM ubuntu:20.04
  2. FROM docker.m.daocloud.io/ubuntu:20.04
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. RUN echo "Update apt:" \
  5. && set -x \
  6. && apt-get update \
  7. && apt-get dist-upgrade -y \
  8. && apt-get install -y \
  9. wget unzip git apt-utils
  10. RUN echo "Install Python v3.8:" \
  11. && apt-get update \
  12. && apt-get install -y \
  13. python3-dev \
  14. python3-pip \
  15. python3-setuptools \
  16. python3-wheel \
  17. && pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
  18. && pip3 install --upgrade --quiet pip setuptools \
  19. && python3 --version
  20. # --- install requirements ---
  21. RUN echo "Install Python Requirements:" \
  22. && pip3 install --default-timeout=1800 --no-cache-dir \
  23. # --- for base --- \
  24. cython==3.0.0a9 \
  25. pyinstaller==4.10 \
  26. # --- for libraries --- \
  27. pycrypto==2.6.1 \
  28. paramiko==2.7.2 \
  29. apscheduler==3.7.0 \
  30. # --- for client --- \
  31. requests==2.25.1 \
  32. redis==3.5.3 \
  33. pymongo==3.11.2 \
  34. influxdb==5.3.1 \
  35. pymysql==0.9.3 \
  36. peewee==3.17.0 \
  37. SQLAlchemy==1.4.30 \
  38. # --- for server --- \
  39. aiofiles==23.2.1 \
  40. python-multipart==0.0.6 \
  41. starlette==0.32.0 \
  42. fastapi==0.108.0 \
  43. fastapi-login==1.9.2 \
  44. uvicorn==0.13.3 \
  45. werkzeug==3.0.1 \
  46. itsdangerous==1.1.0 \
  47. && echo "End."
  48. # --- for server --- \
  49. # aiofiles==0.6.0 \
  50. # python-multipart==0.0.5 \
  51. # starlette==0.13.6 \
  52. # fastapi==0.64.0 \
  53. # fastapi-login==1.5.2 \
  54. # supervisor==4.2.1 \
  55. # uvicorn==0.13.3 \
  56. # werkzeug==1.0.1 \
  57. # itsdangerous==1.1.0 \
  58. #RUN echo "Install Torch v1.6.0:" \
  59. # && pip3 install torch==1.6.0 torchvision==0.7.0 \
  60. # && python3 -c "import torch; print(torch.__version__)"
  61. #RUN echo "Install Torch v1.9.0:" \
  62. # && set -x \
  63. # && apt-get install -y build-essential cmake \
  64. # && pip3 install torch==1.9.0 torchvision==0.10.0 \
  65. # && python3 -c "import torch; print(torch.__version__)"
  66. #COPY ./source/box.com/onnxruntime_gpu-1.10.0-cp38-cp38-linux_aarch64.whl /opt/onnxruntime_gpu-1.10.0-cp38-cp38-linux_aarch64.whl
  67. #RUN echo "Install onnxruntime:" \
  68. # && pip3 install numpy==1.19.4 \
  69. # && pip3 install /opt/onnxruntime_gpu-1.10.0-cp38-cp38-linux_aarch64.whl \
  70. # && echo "End."