Created
March 11, 2015 18:28
-
-
Save LeoCBS/02892e5455608ff67f6b to your computer and use it in GitHub Desktop.
Dockerfile to up one spider/scrapy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER likang | |
#instalando python e scrapy | |
RUN apt-get update | |
RUN apt-get install -y python python-pip python-dev libxml2-dev libxslt-dev libffi-dev libssl-dev | |
RUN pip install lxml && pip install pyopenssl && pip install Scrapy && pip install service_identity | |
#instalando o git | |
RUN apt-get install -y git | |
#criando uma pasta para o projeto scrapy | |
RUN mkdir /scrapyguj | |
#clonando projeto | |
RUN cd /scrapyguj; git clone https://github.com/LeoCBS/guj.git | |
#rodando scrapy | |
WORKDIR /scrapyguj/guj | |
CMD ["scrapy", "crawl", "java", "-o items.json"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment