Skip to content

Commit

Permalink
Add Dockerfile (#246)
Browse files Browse the repository at this point in the history
* Add Dockerfile

* add KLAUS_VERSION build arg
  • Loading branch information
s-ol authored and jonashaag committed Nov 26, 2019
1 parent a05b8c0 commit aecaaac
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit aecaaac

Please sign in to comment.