9aaaeca2f5aaaacac74e292448bbc7d774122a4f
[edumed.git] / Dockerfile
1 FROM python:2.7-alpine AS base
2
3 RUN     apk update && apk add --no-cache \
4         libxslt-dev libxml2-dev build-base \
5         tiff-dev jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev \
6         libwebp-dev tcl-dev tk-dev harfbuzz-dev fribidi-dev \
7         libxcb-dev libpng-dev \
8         postgresql-dev
9 COPY requirements.txt requirements.txt
10 RUN pip install --no-cache-dir -r requirements.txt
11
12 WORKDIR /app
13
14
15 FROM base AS dev
16
17
18
19 FROM base AS prod
20
21 RUN pip install --no-cache-dir gunicorn psycopg2-binary
22
23 COPY . /app