1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00
dockerfiles/scrapyd/Dockerfile

56 lines
2.0 KiB
Docker
Raw Normal View History

2014-12-01 13:19:37 +00:00
#
2015-05-30 11:47:20 +00:00
# Dockerfile for scrapyd
2014-12-01 13:19:37 +00:00
#
2015-05-28 13:34:50 +00:00
FROM debian:jessie
2015-05-27 23:21:59 +00:00
MAINTAINER kev <noreply@datageek.info>
2014-12-01 13:19:37 +00:00
2015-05-28 13:34:50 +00:00
RUN apt-get update \
&& apt-get install -y autoconf \
2015-05-27 23:21:59 +00:00
build-essential \
2015-05-28 13:34:50 +00:00
curl \
2015-05-28 15:29:07 +00:00
git \
2015-05-28 13:34:50 +00:00
libffi-dev \
libssl-dev \
libtool \
python \
2015-05-27 23:21:59 +00:00
python-dev \
2015-05-28 13:34:50 +00:00
vim-tiny \
&& mkdir libxml2 \
&& curl -sSL ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz | tar xz --strip 1 -C libxml2 \
&& cd libxml2 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& ldconfig \
&& cd .. \
&& rm -rf libxml2 \
&& mkdir libxslt \
&& curl -sSL https://git.gnome.org/browse/libxslt/snapshot/libxslt-1.1.28.tar.xz | tar xJ --strip 1 -C libxslt \
&& cd libxslt \
&& ./autogen.sh --prefix=/usr \
&& make \
&& make install \
&& ldconfig \
&& cd .. \
&& rm -rf libxslt \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
2015-06-02 08:20:05 +00:00
&& pip install git+https://github.com/scrapy/scrapy.git \
git+https://github.com/scrapy/scrapyd.git \
2015-06-20 09:29:44 +00:00
git+https://github.com/scrapy/scrapyd-client.git \
2015-05-28 13:34:50 +00:00
&& 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 \
2015-06-20 09:12:04 +00:00
&& apt-get purge -y --auto-remove autoconf \
build-essential \
libffi-dev \
libssl-dev \
libtool \
python-dev \
2015-05-27 23:30:09 +00:00
&& rm -rf /var/lib/apt/lists/*
2015-05-27 23:21:59 +00:00
2015-05-29 01:19:56 +00:00
ADD ./scrapyd.conf /etc/scrapyd/
2015-05-28 15:11:37 +00:00
VOLUME /etc/scrapyd/ /var/lib/scrapyd/
EXPOSE 6800
2014-12-01 13:19:37 +00:00
2015-05-28 15:11:37 +00:00
CMD ["scrapyd"]