Eclectic Media Git klaus / aecaaac
Add Dockerfile (#246) * Add Dockerfile * add KLAUS_VERSION build arg sol authored 7 months ago Jonas Haag committed 7 months ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 FROM alpine:edge
1
2 RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
3 apk add --no-cache uwsgi-python git ctags py3-six py3-markupsafe py3-pygments \
4 py3-dulwich py3-humanize py3-flask py3-flask-markdown
5
6 RUN apk add --no-cache python3-dev gcc musl-dev && \
7 pip3 install python-ctags3 && \
8 apk del python3-dev gcc musl-dev
9
10 ARG KLAUS_VERSION
11 RUN pip3 install klaus${KLAUS_VERSION:+==}${KLAUS_VERSION}
12
13 EXPOSE 5000
14 ENTRYPOINT ["uwsgi", "--plugin", "python", "--http11-socket", "0.0.0.0:5000"]
15 CMD ["-w", "klaus.contrib.wsgi_autoreload"]