From 4ee8cf621a7fe17fb9efbd42d399c745ec0ccd53 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Fri, 10 Mar 2017 08:51:31 +0000 Subject: [PATCH] use latest parsed version in dockerfile --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dd5afb8..725e92a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ FROM quay.io/vektorcloud/glibc:latest -ENV CTOP_VERSION 0.4 -ENV CTOP_URL https://github.com/bcicen/ctop/releases/download/v${CTOP_VERSION}/ctop-${CTOP_VERSION}-linux-amd64 - -RUN wget -q $CTOP_URL -O /ctop && \ +RUN ctop_url=$(wget -q -O - https://api.github.com/repos/bcicen/ctop/releases/latest | grep 'browser_' | cut -d\" -f4 |grep 'linux-amd64') && \ + wget -q $ctop_url -O /ctop && \ chmod +x /ctop ENTRYPOINT ["/ctop"]