mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-16 04:54:23 +02:00
update
This commit is contained in:
parent
686b92a06d
commit
918b9dae79
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user