Skip to content

Instantly share code, notes, and snippets.

@redapple
Created April 11, 2016 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redapple/cd9c31eeab8c4d5ea9eef7b200c3d4d0 to your computer and use it in GitHub Desktop.
Save redapple/cd9c31eeab8c4d5ea9eef7b200c3d4d0 to your computer and use it in GitHub Desktop.
Scrapy Ubuntu Trusty (14.04) Dockerfile
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
# Install Python3 and dev headers
RUN apt-get install -y \
python3 \
python-dev \
python3-dev
# Install cryptography
RUN apt-get install -y \
build-essential \
libssl-dev \
libffi-dev
# install lxml
RUN apt-get install -y \
libxml2-dev \
libxslt-dev
# install pip
RUN apt-get install -y python-pip
RUN useradd --create-home --shell /bin/bash scrapyuser
USER scrapyuser
WORKDIR /home/scrapyuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment