2ee1cce15ef41934af2c4b2eedf106a10afc8aac
[edumed.git] / Dockerfile
1 FROM python:2.7 AS base
2
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 \
8     libpq-dev \
9     ruby-sass \
10     && rm -rf /var/lib/apt/lists/*
11
12 COPY requirements.txt requirements.txt
13 RUN pip install --no-cache-dir -r requirements.txt
14
15 WORKDIR /app
16
17
18 FROM base AS dev
19
20
21
22 FROM base AS prod
23
24 RUN pip install --no-cache-dir gunicorn psycopg2-binary
25
26 COPY . /app