13 lines
325 B
Docker
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 -e . \
|
|
&& 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" ]
|