matemat/package/docker/Dockerfile

14 lines
325 B
Text
Raw Normal View History

2018-06-19 22:54:07 +02:00
FROM python:3.7-alpine
2018-06-19 22:54:07 +02:00
2018-11-04 02:55:33 +01:00
ADD . /
RUN mkdir -p /var/matemat/db /var/matemat/upload \
&& apk --update add libmagic zlib jpeg zlib-dev jpeg-dev build-base \
2018-11-04 02:58:18 +01:00
&& pip3 install -e . \
&& apk del zlib-dev jpeg-dev build-base \
2018-11-04 02:55:33 +01:00
&& rm -rf /var/cache/apk /root/.cache/pip \
&& rm -rf /package
2018-06-19 22:54:07 +02:00
EXPOSE 80/tcp
CMD [ "/run.sh" ]