#FROM ubuntu:20.04 FROM docker.m.daocloud.io/ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive RUN echo "Update apt:" \ && set -x \ && apt-get update \ && apt-get dist-upgrade -y \ && apt-get install -y \ wget unzip git apt-utils RUN echo "Install Python v3.8:" \ && apt-get update \ && apt-get install -y \ python3-dev \ python3-pip \ python3-setuptools \ python3-wheel \ && pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \ && pip3 install --upgrade --quiet pip setuptools \ && python3 --version # --- install requirements --- RUN echo "Install Python Requirements:" \ && pip3 install --default-timeout=1800 --no-cache-dir \ # --- for base --- \ cython==3.0.0a9 \ pyinstaller==4.10 \ # --- for libraries --- \ pycrypto==2.6.1 \ paramiko==2.7.2 \ apscheduler==3.7.0 \ # --- for client --- \ requests==2.25.1 \ redis==3.5.3 \ pymongo==3.11.2 \ influxdb==5.3.1 \ pymysql==0.9.3 \ peewee==3.17.0 \ SQLAlchemy==1.4.30 \ # --- for server --- \ aiofiles==23.2.1 \ python-multipart==0.0.6 \ starlette==0.32.0 \ fastapi==0.108.0 \ fastapi-login==1.9.2 \ uvicorn==0.13.3 \ werkzeug==3.0.1 \ itsdangerous==1.1.0 \ && echo "End." # --- for server --- \ # aiofiles==0.6.0 \ # python-multipart==0.0.5 \ # starlette==0.13.6 \ # fastapi==0.64.0 \ # fastapi-login==1.5.2 \ # supervisor==4.2.1 \ # uvicorn==0.13.3 \ # werkzeug==1.0.1 \ # itsdangerous==1.1.0 \ #RUN echo "Install Torch v1.6.0:" \ # && pip3 install torch==1.6.0 torchvision==0.7.0 \ # && python3 -c "import torch; print(torch.__version__)" #RUN echo "Install Torch v1.9.0:" \ # && set -x \ # && apt-get install -y build-essential cmake \ # && pip3 install torch==1.9.0 torchvision==0.10.0 \ # && python3 -c "import torch; print(torch.__version__)" #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 #RUN echo "Install onnxruntime:" \ # && pip3 install numpy==1.19.4 \ # && pip3 install /opt/onnxruntime_gpu-1.10.0-cp38-cp38-linux_aarch64.whl \ # && echo "End."