1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-11 13:53:19 +02:00
dockerfiles/scrapy/Dockerfile

50 lines
1.7 KiB
Docker
Raw Normal View History

2014-12-04 20:34:58 +08:00
#
# Dockerfile for scrapy
#
2015-05-28 09:07:32 +08:00
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
2014-12-04 20:34:58 +08:00
2015-05-28 09:07:32 +08:00
RUN apt-get update \
2015-05-28 10:42:35 +08:00
&& apt-get install -y autoconf \
build-essential \
2015-05-28 09:07:32 +08:00
curl \
libffi-dev \
libssl-dev \
2015-05-28 10:42:35 +08:00
libtool \
2015-05-28 09:07:32 +08:00
python \
python-dev \
2015-05-28 12:21:17 +08:00
vim-tiny \
2015-05-28 10:42:35 +08:00
&& 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 \
2015-05-28 09:07:32 +08:00
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
2015-05-28 12:21:17 +08:00
&& pip install scrapy==0.24.6 \
2015-05-28 09:29:27 +08:00
&& curl -sSL https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion -o /etc/bash_completion.d/scrapy_bash_completion \
2015-05-28 12:21:17 +08:00
&& echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \
2015-05-28 10:42:35 +08:00
&& apt-get remove -y autoconf \
build-essential \
2015-05-28 09:07:32 +08:00
libffi-dev \
libssl-dev \
2015-05-28 10:42:35 +08:00
libtool \
2015-05-28 09:07:32 +08:00
python-dev \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
2014-12-04 20:34:58 +08:00
2015-05-28 09:07:32 +08:00
CMD ["/bin/bash"]