You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 2.0 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
  2. MAINTAINER root
  3. RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
  4. ADD sources.list /etc/apt/
  5. # 安装基础包
  6. RUN rm /etc/apt/sources.list.d/cuda.list
  7. RUN DEBIAN_FRONTEND=noninteractive apt-get update
  8. RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget curl
  9. RUN apt-get install -y zip
  10. RUN apt-get install -y libgl1-mesa-glx
  11. RUN apt-get install -y libglib2.0-0
  12. ENV LANG C.UTF-8
  13. RUN apt-get update
  14. # 安装python环境 3.7
  15. COPY Python-3.7.4.tgz /tmp
  16. RUN apt-get install -y zlib1g=1:1.2.8.dfsg-2ubuntu4.3 --allow-downgrades
  17. RUN apt-get install -y libffi6=3.2.1-4 --allow-downgrades
  18. RUN apt-get install -y libffi-dev
  19. RUN apt-get install -y libssl-dev
  20. RUN apt-get install -y zlib*
  21. RUN cd /tmp && tar -zxvf Python-3.7.4.tgz
  22. RUN cd /tmp/Python-3.7.4 && ./configure && make && make install
  23. RUN ln -s /usr/local/bin/python3.7 /usr/bin/python
  24. RUN rm -rf /usr/bin/pip
  25. RUN ln -s /usr/local/bin/pip3.7 /usr/bin/pip
  26. RUN wget https://dubhe.oos-cn.ctyunapi.cn:443/oneflow.zip -O /tmp/oneflow.zip
  27. RUN unzip /tmp/oneflow.zip -d /tmp
  28. ENV LD_LIBRARY_PATH=/tmp/darknet_dependencies/:$LD_LIBRARY_PATH
  29. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ --upgrade pip
  30. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ /tmp/oneflow_cu102-0.3.4-cp37-cp37m-manylinux2014_x86_64.whl
  31. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ /tmp/oneflow_yolov3-0.0.0-py3-none-any.whl
  32. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ opencv-python
  33. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ numpy
  34. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ redis
  35. RUN pip install --user -i https://mirrors.cloud.tencent.com/pypi/simple/ nvidia-ml-py3
  36. RUN pip install protobuf==3.17.0 --user -i https://mirrors.cloud.tencent.com/pypi/simple/
  37. RUN echo 'success!!!'

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能