-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Dockerfile * add KLAUS_VERSION build arg
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |