-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/*
+