2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-04 03:54:55 +01:00

add scrapyd-onbuild

This commit is contained in:
kev
2015-06-01 09:08:57 +08:00
parent 4817e1ef52
commit 9dec559183
9 changed files with 34 additions and 15 deletions

View File

@@ -5,9 +5,6 @@
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
ADD ./packages.txt /etc/scrapyd/
ADD ./requirements.txt /etc/scrapyd/
RUN apt-get update \
&& apt-get install -y autoconf \
build-essential \
@@ -38,10 +35,7 @@ RUN apt-get update \
&& cd .. \
&& rm -rf libxslt \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install scrapy==0.24.6 scrapyd==1.0.1 \
&& xargs apt-get install -y < /etc/scrapyd/packages.txt \
&& pip install -r /etc/scrapyd/requirements.txt \
&& xargs apt-get remove -y < /etc/scrapyd/packages.txt \
&& pip install scrapy==0.24.6 scrapyd==1.0.1 service_identity \
&& curl -sSL https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion -o /etc/bash_completion.d/scrapy_bash_completion \
&& echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \
&& apt-get remove -y autoconf \