Fixed Dockerfile to support installation of pillow.
This commit is contained in:
parent
4ecc848eac
commit
60fa154dd6
1 changed files with 5 additions and 3 deletions
|
@ -1,10 +1,12 @@
|
||||||
|
|
||||||
FROM python:3.7-alpine
|
FROM python:3.7-alpine
|
||||||
|
|
||||||
RUN mkdir -p /var/matemat/db /var/matemat/upload
|
|
||||||
RUN apk --update add libmagic
|
|
||||||
ADD . /
|
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
|
EXPOSE 80/tcp
|
||||||
CMD [ "/run.sh" ]
|
CMD [ "/run.sh" ]
|
||||||
|
|
Loading…
Reference in a new issue