diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..0b1cb08b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine:edge + +RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \ + apk add --no-cache uwsgi-python git ctags py3-six py3-markupsafe py3-pygments \ + py3-dulwich py3-humanize py3-flask py3-flask-markdown + +RUN apk add --no-cache python3-dev gcc musl-dev && \ + pip3 install python-ctags3 && \ + apk del python3-dev gcc musl-dev + +ARG KLAUS_VERSION +RUN pip3 install klaus${KLAUS_VERSION:+==}${KLAUS_VERSION} + +EXPOSE 5000 +ENTRYPOINT ["uwsgi", "--plugin", "python", "--http11-socket", "0.0.0.0:5000"] +CMD ["-w", "klaus.contrib.wsgi_autoreload"]