1
0
Fork 0
forked from s3lph/matemat

Fixed Dockerfile to support installation of pillow.

This commit is contained in:
s3lph 2018-09-10 01:25:07 +02:00
parent 4ecc848eac
commit 60fa154dd6

View file

@ -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" ]