Skip to content

Instantly share code, notes, and snippets.

@zubairalam
Forked from LeoCBS/Dockerfile
Created January 30, 2016 08:03
Show Gist options
  • Save zubairalam/4540eb73b41b7df06089 to your computer and use it in GitHub Desktop.
Save zubairalam/4540eb73b41b7df06089 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