1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/scrapyd/Dockerfile

73 lines
2.9 KiB
Docker
Raw Normal View History

2014-12-01 13:19:37 +00:00
#
2021-11-03 10:14:38 +00:00
# Dockerfile for scrapyd (python2) [deprecated]
2014-12-01 13:19:37 +00:00
#
2020-05-26 09:31:46 +00:00
FROM debian:buster
MAINTAINER EasyPi Software Foundation
ENV SCRAPY_VERSION=1.8.0
ENV SCRAPYD_VERSION=1.2.1
2021-03-29 07:39:47 +00:00
ENV SCRAPYRT_VERSION=0.11.0
2020-05-26 09:31:46 +00:00
ENV PILLOW_VERSION=6.2.2
2014-12-01 13:19:37 +00:00
2016-05-26 12:30:59 +00:00
RUN set -xe \
&& apt-get update \
2015-05-28 13:34:50 +00:00
&& 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 \
2016-05-26 12:46:51 +00:00
libxml2 \
libxml2-dev \
libxslt1.1 \
libxslt1-dev \
2015-05-28 13:34:50 +00:00
python \
2015-05-27 23:21:59 +00:00
python-dev \
2021-12-07 08:50:20 +00:00
tini \
2015-05-28 13:34:50 +00:00
vim-tiny \
2016-05-26 12:30:59 +00:00
&& apt-get install -y libtiff5 \
libtiff5-dev \
libfreetype6-dev \
libjpeg62-turbo \
libjpeg62-turbo-dev \
liblcms2-2 \
liblcms2-dev \
2018-01-23 15:01:57 +00:00
libwebp6 \
2016-05-26 12:30:59 +00:00
libwebp-dev \
zlib1g \
zlib1g-dev \
2021-11-17 08:59:20 +00:00
&& curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py | python \
&& pip install --no-cache-dir git+https://github.com/scrapy/scrapy.git@$SCRAPY_VERSION \
2020-05-26 09:31:46 +00:00
git+https://github.com/scrapy/scrapyd.git@$SCRAPYD_VERSION \
2015-06-20 09:29:44 +00:00
git+https://github.com/scrapy/scrapyd-client.git \
2015-09-20 10:19:43 +00:00
git+https://github.com/scrapinghub/scrapy-splash.git \
2021-03-29 07:39:47 +00:00
git+https://github.com/scrapinghub/scrapyrt.git@$SCRAPYRT_VERSION \
2020-05-26 09:31:46 +00:00
git+https://github.com/python-pillow/Pillow.git@$PILLOW_VERSION \
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 \
2020-05-29 04:11:32 +00:00
curl \
2015-06-20 09:12:04 +00:00
libffi-dev \
libssl-dev \
libtool \
2016-05-26 12:46:51 +00:00
libxml2-dev \
libxslt1-dev \
2015-06-20 09:12:04 +00:00
python-dev \
2016-05-26 12:30:59 +00:00
&& apt-get purge -y --auto-remove libtiff5-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
liblcms2-dev \
libwebp-dev \
zlib1g-dev \
2015-05-27 23:30:09 +00:00
&& rm -rf /var/lib/apt/lists/*
2015-05-27 23:21:59 +00:00
2016-05-26 12:30:59 +00:00
COPY ./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
2021-12-07 08:50:20 +00:00
ENTRYPOINT ["tini", "--"]
2017-04-04 03:55:25 +00:00
CMD ["scrapyd", "--pidfile="]