From 60fa154dd6dd7aa3e7b2181e7a12866f64cbeae5 Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 10 Sep 2018 01:25:07 +0200 Subject: [PATCH] Fixed Dockerfile to support installation of pillow. --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 553cb64..7338327 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM python:3.7-alpine -RUN mkdir -p /var/matemat/db /var/matemat/upload -RUN apk --update add libmagic ADD . / -RUN pip3 install -r /requirements.txt +RUN mkdir -p /var/matemat/db /var/matemat/upload \ + && apk --update add libmagic zlib jpeg zlib-dev jpeg-dev build-base \ + && pip3 install -r /requirements.txt \ + && apk del zlib-dev jpeg-dev build-base \ + && rm -rf /var/cache/apk /root/.cache/pip EXPOSE 80/tcp CMD [ "/run.sh" ]