Skip to content

Instantly share code, notes, and snippets.

@dz1984
Created October 18, 2014 15:37
Show Gist options
  • Save dz1984/e52d3e226e28ec2ca66b to your computer and use it in GitHub Desktop.
Save dz1984/e52d3e226e28ec2ca66b to your computer and use it in GitHub Desktop.
Eia_crawler dockerfile.
# Dockerfile for eia_crawler project
FROM ubuntu:precise
MAINTAINER Donald Zhan <[email protected]>
# Add necessary respnsitory
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7
RUN echo 'deb http://archive.scrapy.org/ubuntu scrapy main' > /etc/apt/sources.list.d/scrapy.list
# Install scrapy
RUN apt-get update -qq
RUN apt-get -y install scrapy-0.22 git
# Clone eia_crawler project
RUN git clone https://github.com/dz1984/eia_crawler.git /home/eia_cralwer
# Seting Default Work Directory
WORKDIR /home/eia_cralwer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment