forked from s3lph/matemat
12 lines
306 B
Docker
12 lines
306 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
|
|
|
|
EXPOSE 80/tcp
|
|
CMD [ "/run.sh" ]
|