X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/b914ea210fbbcc10413a5ee78a3a7c5aab2807a0..5ab442245fd94a2408e6341db0bb3b0ee986c977:/Dockerfile?ds=sidebyside diff --git a/Dockerfile b/Dockerfile index 9aaaeca..03fe177 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,18 @@ -FROM python:2.7-alpine AS base - -RUN apk update && apk add --no-cache \ - libxslt-dev libxml2-dev build-base \ - tiff-dev jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev \ - libwebp-dev tcl-dev tk-dev harfbuzz-dev fribidi-dev \ - libxcb-dev libpng-dev \ - postgresql-dev +FROM python:2.7 AS base + +RUN apt-get update && apt-get install -y \ + libxslt-dev libxml2-dev build-essential \ + libtiff5-dev libjpeg62-turbo-dev libopenjp2-7-dev zlib1g-dev \ + libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \ + libharfbuzz-dev libfribidi-dev libxcb1-dev \ + libpq-dev \ + ruby-sass \ + && rm -rf /var/lib/apt/lists/* + COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt -WORKDIR /app +WORKDIR /app/src FROM base AS dev @@ -20,4 +23,4 @@ FROM base AS prod RUN pip install --no-cache-dir gunicorn psycopg2-binary -COPY . /app +COPY src /app/src/