1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/scrapyd/arm/Dockerfile

80 lines
3.3 KiB
Docker
Raw Normal View History

2017-03-04 16:50:30 +02:00
#
2020-05-29 06:11:32 +02:00
# Dockerfile for scrapyd-arm (python3)
2017-03-04 16:50:30 +02:00
#
2021-10-15 05:21:09 +02:00
FROM debian:bullseye
2017-03-04 16:50:30 +02:00
MAINTAINER EasyPi Software Foundation
2021-10-15 05:21:09 +02:00
ENV SCRAPY_VERSION=2.5.1
2020-05-29 06:11:32 +02:00
ENV SCRAPYD_VERSION=1.2.1
2021-10-15 05:21:09 +02:00
ENV SCRAPYD_CLIENT_VERSION=v1.2.0
2021-04-14 10:26:13 +02:00
ENV SCRAPYRT_VERSION=v0.12
2021-11-30 08:46:34 +02:00
ENV SPIDERMON_VERSION=1.15.2
2021-11-03 11:52:10 +02:00
ENV PILLOW_VERSION=8.4.0
2020-05-29 06:11:32 +02:00
2017-03-04 16:50:30 +02:00
RUN set -xe \
&& apt-get update \
&& apt-get install -y autoconf \
build-essential \
2021-11-03 12:14:38 +02:00
cargo \
2017-03-04 16:50:30 +02:00
curl \
git \
libffi-dev \
libssl-dev \
libtool \
libxml2 \
libxml2-dev \
libxslt1.1 \
libxslt1-dev \
2020-05-29 06:11:32 +02:00
python3 \
python3-dev \
2020-10-16 08:45:15 +02:00
python3-distutils \
2021-12-07 10:50:20 +02:00
tini \
2017-03-04 16:50:30 +02:00
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-03-04 16:50:30 +02:00
libwebp-dev \
zlib1g \
zlib1g-dev \
2020-05-29 06:11:32 +02:00
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 \
2021-11-03 11:52:10 +02:00
&& pip install --no-cache-dir ipython \
git+https://github.com/scrapy/scrapy.git@$SCRAPY_VERSION \
2020-05-29 06:11:32 +02:00
git+https://github.com/scrapy/scrapyd.git@$SCRAPYD_VERSION \
2021-10-15 05:21:09 +02:00
git+https://github.com/scrapy/scrapyd-client.git@$SCRAPYD_CLIENT_VERSION \
2017-03-04 16:50:30 +02:00
git+https://github.com/scrapinghub/scrapy-splash.git \
2021-03-29 09:39:47 +02:00
git+https://github.com/scrapinghub/scrapyrt.git@$SCRAPYRT_VERSION \
2021-11-30 08:46:34 +02:00
git+https://github.com/scrapinghub/spidermon.git@$SPIDERMON_VERSION \
2020-05-29 06:11:32 +02:00
git+https://github.com/python-pillow/Pillow.git@$PILLOW_VERSION \
2017-03-04 16:50:30 +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 \
2021-11-03 12:14:38 +02:00
cargo \
2020-05-29 06:11:32 +02:00
curl \
2017-03-04 16:50:30 +02:00
libffi-dev \
libssl-dev \
libtool \
libxml2-dev \
libxslt1-dev \
2020-05-29 06:11:32 +02:00
python3-dev \
2017-03-04 16:50:30 +02:00
&& 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
2021-12-07 10:50:20 +02:00
ENTRYPOINT ["tini", "--"]
2017-04-04 05:55:25 +02:00
CMD ["scrapyd", "--pidfile="]