add version

This commit is contained in:
Henning Jacobs
2017-01-14 17:54:27 +01:00
parent 6690100f6d
commit 43bf0040cb
6 changed files with 33 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
FROM alpine:3.5
MAINTAINER Henning Jacobs <henning@jacobs1.de>
ARG VERSION=latest
EXPOSE 8080
RUN apk add --no-cache python3 python3-dev gcc musl-dev zlib-dev libffi-dev openssl-dev ca-certificates && \
@@ -16,6 +18,7 @@ COPY requirements.txt /
RUN pip3 install -r /requirements.txt
COPY kube_ops_view /kube_ops_view
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_ops_view/__init__.py
WORKDIR /
ENTRYPOINT ["/usr/bin/python3", "-m", "kube_ops_view"]