1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
This commit is contained in:
kev 2015-05-28 10:42:35 +08:00
parent 686b92a06d
commit 918b9dae79
2 changed files with 27 additions and 9 deletions

@ -6,26 +6,42 @@ FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y build-essential \
&& apt-get install -y autoconf \
build-essential \
curl \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libtool \
python \
python-dev \
&& 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 \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install scrapy==1.0.0rc1 \
&& curl -sSL https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion -o /etc/bash_completion.d/scrapy_bash_completion \
&& apt-get remove -y build-essential \
&& apt-get remove -y autoconf \
build-essential \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libtool \
python-dev \
&& apt-get autoremove -y \
&& apt-get install -y libxml2 \
libxslt1.1 \
&& rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]

@ -13,7 +13,9 @@ docker run --name scrapy -it vimagick/scrapy
## TODO-LIST
- build [libxml2][1]/[libxslt][2] from source
- [x] build [libxml2][1]/[libxslt][2] from source
- [x] add [scrapy_bash_completion][3] script
[1]: http://www.xmlsoft.org/downloads.html
[2]: http://git.gnome.org/browse/libxslt/
[3]: https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion