Skip to content

Instantly share code, notes, and snippets.

@LeoCBS
Created March 11, 2015 18:28
Show Gist options
  • Save LeoCBS/02892e5455608ff67f6b to your computer and use it in GitHub Desktop.
Save LeoCBS/02892e5455608ff67f6b to your computer and use it in GitHub Desktop.
Dockerfile to up one spider/scrapy
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