FROM python:2.7-slim

RUN apt-get update && apt-get install -y \
		gcc \
		gettext \
		mysql-client libmysqlclient-dev \
		postgresql-client libpq-dev \
		sqlite3 \
	--no-install-recommends && rm -rf /var/lib/apt/lists/*

ENV DJANGO_VERSION 1.9.4

RUN pip install mysqlclient psycopg2 django=="$DJANGO_VERSION"

FROM alpine:3.3

RUN apk add --update \
               gcc musl-dev python-dev py-pip \
               mariadb-dev \
               postgresql-dev \
               sqlite && \
        rm -rf /var/cache/apk/*

ENV DJANGO_VERSION 1.9.4

RUN pip install mysqlclient psycopg2 django=="$DJANGO_VERSION"

Use Alpine 3.3 as base for 2.7 image.
Use Alpine 3.3 as base for 2.7 image.
