2018-06-19 22:54:07 +02:00
|
|
|
|
2018-08-02 20:37:54 +02:00
|
|
|
FROM python:3.7-alpine
|
2018-06-19 22:54:07 +02:00
|
|
|
|
2018-09-15 02:12:16 +02:00
|
|
|
ADD ../.. /
|
2018-09-10 01:25:07 +02:00
|
|
|
RUN mkdir -p /var/matemat/db /var/matemat/upload \
|
|
|
|
&& apk --update add libmagic zlib jpeg zlib-dev jpeg-dev build-base \
|
2018-09-15 02:12:16 +02:00
|
|
|
&& pip3 install -u . \
|
2018-09-10 01:25:07 +02:00
|
|
|
&& apk del zlib-dev jpeg-dev build-base \
|
|
|
|
&& rm -rf /var/cache/apk /root/.cache/pip
|
2018-06-19 22:54:07 +02:00
|
|
|
|
2018-07-15 00:07:25 +02:00
|
|
|
EXPOSE 80/tcp
|
2018-07-20 11:38:16 +02:00
|
|
|
CMD [ "/run.sh" ]
|