NoteOnMe博客平台搭建
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.8 KiB

3 years ago
  1. FROM webdevops/php-nginx-dev
  2. RUN apt-get update \
  3. && echo "\033[34m apt-get update finished \033[0m" \
  4. # Install python3
  5. && apt-get install -y python3 \
  6. && echo "\033[34m install python3 finished \033[0m" \
  7. # Install pip
  8. #&& apt-get install -y wget \
  9. #&& wget -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \
  10. #&& python3 /tmp/get-pip.py \
  11. && apt-get install -y python3-pip \
  12. && echo "\033[34m install python3-pip finished \033[0m" \
  13. && pip3 install --upgrade pip \
  14. && echo "\033[34m upgrade pip finished \033[0m" \
  15. # Install other libs
  16. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ requests \
  17. && echo "\033[34m pip3 install requests finished \033[0m" \
  18. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy==1.14.2 \
  19. && echo "\033[34m pip3 install numpy==1.14.2 finished\033[0m" \
  20. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ tqdm==4.11.2 \
  21. && echo "\033[34m pip3 install tqdm finished \033[0m" \
  22. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ opencv-python==3.4.0.12 \
  23. && echo "\033[34m pip3 install opencv-python==3.4.0.12 finished \033[0m" \
  24. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ Shapely==1.6.4.post1 \
  25. && echo "\033[34m pip3 install Shapely==1.6.4.post1 finished\033[0m" \
  26. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ matplotlib==1.5.3 \
  27. && echo "\033[34m pip3 install matplotlib==1.5.3 finished \033[0m" \
  28. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorflow==1.4.0 \
  29. && echo "\033[34m pip3 install tensorflow==1.4.0 finished \033[0m" \
  30. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ Cython==0.24.1 \
  31. && echo "\033[34m pip3 install Cython==0.24.1 finished\033[0m" \
  32. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ ipython==5.1.0 \
  33. && echo "\033[34m pip3 install ipython==5.1.0 finished \033[0m" \
  34. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ scipy==1.1.0 \
  35. && echo "\033[34m pip3 install scipy==1.1.0 finished \033[0m" \
  36. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ nltk \
  37. && echo "\033[34m pip3 install nltk finished\033[0m" \
  38. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ pillow \
  39. && echo "\033[34m pip3 install pillow finished \033[0m" \
  40. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ distance \
  41. && echo "\033[34m pip3 install distance finished \033[0m" \
  42. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ scikit-image \
  43. && echo "\033[34m pip3 install scikit-image finished \033[0m" \
  44. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ six \
  45. && echo "\033[34m pip3 install six finished\033[0m" \
  46. && pip3 install -U -i https://pypi.tuna.tsinghua.edu.cn/simple/ click \
  47. && echo "\033[34m pip3 install click finished \033[0m" \
  48. COPY php.ini /opt/docker/etc/php/php.ini