You've already forked dockerfiles
							
							
				mirror of
				https://github.com/vimagick/dockerfiles.git
				synced 2025-10-30 23:47:48 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
| #
 | |
| # Dockerfile for scrapyd
 | |
| #
 | |
| 
 | |
| FROM debian:jessie
 | |
| MAINTAINER kev <noreply@easypi.info>
 | |
| 
 | |
| RUN apt-get update \
 | |
|     && apt-get install -y autoconf \
 | |
|                           build-essential \
 | |
|                           curl \
 | |
|                           git \
 | |
|                           libffi-dev \
 | |
|                           libssl-dev \
 | |
|                           libtool \
 | |
|                           python \
 | |
|                           python-dev \
 | |
|                           vim-tiny \
 | |
|     && 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 git+https://github.com/scrapy/scrapy.git \
 | |
|                    git+https://github.com/scrapy/scrapyd.git \
 | |
|                    git+https://github.com/scrapy/scrapyd-client.git \
 | |
|                    git+https://github.com/scrapinghub/scrapy-splash.git \
 | |
|     && 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 \
 | |
|                                       libffi-dev \
 | |
|                                       libssl-dev \
 | |
|                                       libtool \
 | |
|                                       python-dev \
 | |
|     && rm -rf /var/lib/apt/lists/*
 | |
| 
 | |
| ADD ./scrapyd.conf /etc/scrapyd/
 | |
| VOLUME /etc/scrapyd/ /var/lib/scrapyd/
 | |
| EXPOSE 6800
 | |
| 
 | |
| CMD ["scrapyd"]
 |