docker使用笔记VII -- Scrapy
最近在研究Scrapy的安装,发现在centos上安装还是挺麻烦的,于是总结出来所有的依赖和加速的问题,终于能用了!
下面看看老高是怎么在Centos下安装Scrapy!
From centos:7
MAINTAINER LAO GAO
RUN sed -i.backup 's/^enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf && \
yum update -y && \
yum install -y wget && \
yum install -y python-setuptools libxslt-devel python-devel libffi-devel openssl-devel gcc && \
yum clean all
RUN easy_install -i https://pypi.tuna.tsinghua.edu.cn/simple pip
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Scrapy
CMD ["bash"]