Fixed dockerfile

This commit is contained in:
s3lph 2018-11-04 02:55:33 +01:00
parent cc34d72c73
commit 87db033a89

View file

@ -1,12 +1,13 @@
FROM python:3.7-alpine
ADD ../.. /
ADD . /
RUN mkdir -p /var/matemat/db /var/matemat/upload \
&& apk --update add libmagic zlib jpeg zlib-dev jpeg-dev build-base \
&& pip3 install -u . \
&& apk del zlib-dev jpeg-dev build-base \
&& rm -rf /var/cache/apk /root/.cache/pip
&& rm -rf /var/cache/apk /root/.cache/pip \
&& rm -rf /package
EXPOSE 80/tcp
CMD [ "/run.sh" ]