Created
January 30, 2016 08:13
-
-
Save zubairalam/6fd87d39f2805ae0c85f to your computer and use it in GitHub Desktop.
install scrapy in ubuntu
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 python:2.7 | |
ENV PYTHONUNBUFFERED 1 | |
MAINTAINER Zubair Alam | |
# Keep upstart from complaining | |
RUN dpkg-divert --local --rename --add /sbin/initctl | |
RUN ln -sf /bin/true /sbin/initctl | |
# Let the container know that there is no tty | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
#RUN \ | |
# DEBIAN_FRONTEND=noninteractive \ | |
# apt-get install -y \ | |
# iceweasel \ | |
# xvfb | |
RUN apt-get install -y \ | |
python-dev python-pip python-setuptools \ | |
libffi-dev libxml2-dev libxslt1-dev \ | |
libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev \ | |
liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk | |
# project source code | |
RUN mkdir -p /code | |
ADD . /code | |
RUN pip install -r /code/requirements.txt | |
EXPOSE 9000 | |
WORKDIR /code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment