Skip to content

Instantly share code, notes, and snippets.

@lu911
Last active February 22, 2017 09:18
Show Gist options
  • Save lu911/6ff146d6283c2f9fa56f5cf0ef54989d to your computer and use it in GitHub Desktop.
Save lu911/6ff146d6283c2f9fa56f5cf0ef54989d to your computer and use it in GitHub Desktop.
ddingdon-base
FROM ubuntu:16.04
MAINTAINER Loup <[email protected]>
# Install pyenv
ENV PYENV_ROOT /root/.pyenv
ENV PATH /root/.pyenv/shims:/root/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN apt-get update && \
apt-get install -y git mercurial build-essential libssl-dev libbz2-dev libreadline-dev libsqlite3-dev curl vim && \
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
RUN pyenv install 3.5.2
RUN pyenv global 3.5.2
RUN pyenv rehash
# Install ubuntu libraries
RUN apt-get install -y make \
python-dev \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libncurses5-dev \
libncursesw5-dev \
libpq-dev \
libssl-dev \
imagemagick \
libmagickwand-dev \
libffi-dev \
libjpeg-dev \
libxml2-dev \
libxslt1-dev
# Instal uwsgi
RUN pip install uwsgi
COPY ./requirements.txt /tmp/requirements.txt
RUN pip install --upgrade pip
RUN pip install -r /tmp/requirements.txt
RUN rm /tmp/requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment