1 FROM python:2.7 AS base
3 RUN apt-get update && apt-get install -y \
4 libxslt-dev libxml2-dev build-essential \
5 libtiff5-dev libjpeg62-turbo-dev libopenjp2-7-dev zlib1g-dev \
6 libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
7 libharfbuzz-dev libfribidi-dev libxcb1-dev \
10 && rm -rf /var/lib/apt/lists/*
12 COPY requirements.txt requirements.txt
13 RUN pip install --no-cache-dir -r requirements.txt
24 RUN pip install --no-cache-dir gunicorn psycopg2-binary