FROM python:3-alpine
WORKDIR /usr/source/app
COPY requirements.txt ./
RUN apk update
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install --no-cache-dir -r requirements.txthttps://www.docker.com/blog/how-to-build-and-test-your-docker-images-in-the-cloud-with-docker-hub/