Public Repository

Last pushed: 8 months ago
Short Description
Base blog image
Full Description

FROM python:2.7

ENV HOME /root
RUN apt-get update
RUN apt-get install -y apt-utils
RUN apt-get install -y python-dev
RUN apt-get install -y graphviz libgraphviz-dev pkg-config #transitions
RUN apt-get install -y libxml2-dev libxslt1-dev #lxml
RUN apt-get install -y libpq-dev #psycopg
RUN apt-get install -y libncurses5-dev #gnureadline
RUN apt-get install libfreetype6-dev #matplotlib

RUN curl https://bootstrap.pypa.io/get-pip.py | python -
RUN pip install virtualenv
RUN pip install pip-faster

WORKDIR /box

RUN curl https://yelp.github.io/venv-update/install.txt | bash

COPY requirements.txt .
RUN cp requirements.txt /tmp/

RUN sed -i.bak s/git+ssh:/git+https:/g requirements.txt
RUN sed -i.bak /matplotlib/d requirements.txt
RUN sed -i.bak /numpy/d requirements.txt
RUN sed -i.bak /xhtml2pdf/d requirements.txt

RUN mkdir -p $HOME/.cache/pip-faster/wheelhouse
COPY .wheelhouse/* $HOME/.cache/pip-faster/wheelhouse/
RUN while read in; do pip-faster install "$in"; done < requirements.txt

RUN ./bin/venv-update

RUN pip install -r requirements.txt

RUN cp /tmp/requirements.txt .

COPY . .

Docker Pull Command
Owner
coverfox