2017-02-02 04:15:53 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for scrapyd:py3
|
|
|
|
#
|
|
|
|
|
2020-05-26 11:31:46 +02:00
|
|
|
FROM debian:buster
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
2020-07-20 04:59:14 +02:00
|
|
|
ENV SCRAPY_VERSION=2.2.1
|
2020-05-26 11:31:46 +02:00
|
|
|
ENV SCRAPYD_VERSION=1.2.1
|
2020-07-10 05:52:01 +02:00
|
|
|
ENV PILLOW_VERSION=7.2.0
|
2017-02-02 04:15:53 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y autoconf \
|
|
|
|
build-essential \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libtool \
|
|
|
|
libxml2 \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt1.1 \
|
|
|
|
libxslt1-dev \
|
|
|
|
python3 \
|
|
|
|
python3-dev \
|
|
|
|
vim-tiny \
|
|
|
|
&& apt-get install -y libtiff5 \
|
|
|
|
libtiff5-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg62-turbo \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
liblcms2-2 \
|
|
|
|
liblcms2-dev \
|
2018-01-23 17:01:57 +02:00
|
|
|
libwebp6 \
|
2017-02-02 04:15:53 +02:00
|
|
|
libwebp-dev \
|
|
|
|
zlib1g \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 \
|
2020-05-26 11:31:46 +02:00
|
|
|
&& pip install git+https://github.com/scrapy/scrapy.git@$SCRAPY_VERSION \
|
|
|
|
git+https://github.com/scrapy/scrapyd.git@$SCRAPYD_VERSION \
|
2017-02-02 04:15:53 +02:00
|
|
|
git+https://github.com/scrapy/scrapyd-client.git \
|
|
|
|
git+https://github.com/scrapinghub/scrapy-splash.git \
|
2017-03-06 04:00:44 +02:00
|
|
|
git+https://github.com/scrapinghub/scrapyrt.git \
|
2020-05-26 11:31:46 +02:00
|
|
|
git+https://github.com/python-pillow/Pillow.git@$PILLOW_VERSION \
|
2017-02-02 04:15:53 +02: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 \
|
|
|
|
&& apt-get purge -y --auto-remove autoconf \
|
|
|
|
build-essential \
|
2020-05-29 06:11:32 +02:00
|
|
|
curl \
|
2017-02-02 04:15:53 +02:00
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libtool \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt1-dev \
|
|
|
|
python3-dev \
|
|
|
|
&& apt-get purge -y --auto-remove libtiff5-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
liblcms2-dev \
|
|
|
|
libwebp-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY ./scrapyd.conf /etc/scrapyd/
|
|
|
|
VOLUME /etc/scrapyd/ /var/lib/scrapyd/
|
|
|
|
EXPOSE 6800
|
|
|
|
|
2019-03-08 05:56:59 +02:00
|
|
|
CMD ["scrapyd", "--pidfile="]
|