1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-20 04:59:27 +02:00
dockerfiles/scrapyd/Dockerfile

65 lines
2.6 KiB
Docker
Raw Normal View History

2014-12-01 21:19:37 +08:00
#
2015-05-30 19:47:20 +08:00
# Dockerfile for scrapyd
2014-12-01 21:19:37 +08:00
#
2018-01-23 22:54:44 +08:00
FROM debian:stretch
2017-05-08 07:05:07 +08:00
MAINTAINER kev <noreply@easypi.pro>
2014-12-01 21:19:37 +08:00
2016-05-26 20:30:59 +08:00
RUN set -xe \
&& apt-get update \
2015-05-28 21:34:50 +08:00
&& apt-get install -y autoconf \
2015-05-28 07:21:59 +08:00
build-essential \
2015-05-28 21:34:50 +08:00
curl \
2015-05-28 23:29:07 +08:00
git \
2015-05-28 21:34:50 +08:00
libffi-dev \
libssl-dev \
libtool \
2016-05-26 20:46:51 +08:00
libxml2 \
libxml2-dev \
libxslt1.1 \
libxslt1-dev \
2015-05-28 21:34:50 +08:00
python \
2015-05-28 07:21:59 +08:00
python-dev \
2015-05-28 21:34:50 +08:00
vim-tiny \
2016-05-26 20:30:59 +08:00
&& apt-get install -y libtiff5 \
libtiff5-dev \
libfreetype6-dev \
libjpeg62-turbo \
libjpeg62-turbo-dev \
liblcms2-2 \
liblcms2-dev \
2018-01-23 23:01:57 +08:00
libwebp6 \
2016-05-26 20:30:59 +08:00
libwebp-dev \
zlib1g \
zlib1g-dev \
2015-05-28 21:34:50 +08:00
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
2015-06-02 16:20:05 +08:00
&& pip install git+https://github.com/scrapy/scrapy.git \
git+https://github.com/scrapy/scrapyd.git \
2015-06-20 17:29:44 +08:00
git+https://github.com/scrapy/scrapyd-client.git \
2015-09-20 18:19:43 +08:00
git+https://github.com/scrapinghub/scrapy-splash.git \
2017-03-06 10:00:44 +08:00
git+https://github.com/scrapinghub/scrapyrt.git \
2016-05-26 20:30:59 +08:00
git+https://github.com/python-pillow/Pillow.git \
2015-05-28 21:34:50 +08: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 17:12:04 +08:00
&& apt-get purge -y --auto-remove autoconf \
build-essential \
libffi-dev \
libssl-dev \
libtool \
2016-05-26 20:46:51 +08:00
libxml2-dev \
libxslt1-dev \
2015-06-20 17:12:04 +08:00
python-dev \
2016-05-26 20:30:59 +08:00
&& apt-get purge -y --auto-remove libtiff5-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
liblcms2-dev \
libwebp-dev \
zlib1g-dev \
2015-05-28 07:30:09 +08:00
&& rm -rf /var/lib/apt/lists/*
2015-05-28 07:21:59 +08:00
2016-05-26 20:30:59 +08:00
COPY ./scrapyd.conf /etc/scrapyd/
2015-05-28 23:11:37 +08:00
VOLUME /etc/scrapyd/ /var/lib/scrapyd/
EXPOSE 6800
2014-12-01 21:19:37 +08:00
2017-04-04 11:55:25 +08:00
CMD ["scrapyd", "--pidfile="]