1
0
Fork 0
forked from s3lph/matemat
matemat/package/docker/Dockerfile
2018-11-04 02:55:33 +01:00

13 lines
325 B
Docker

FROM python:3.7-alpine
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 /package
EXPOSE 80/tcp
CMD [ "/run.sh" ]