From b5d8f59152c725de8aedf5def43b046f159e051f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Kleppe-J=C3=B8rgensen?= Date: Wed, 24 Jun 2015 16:58:29 +0200 Subject: [PATCH] Use easier method for installing envconsul Now when a bigger and more complete parent image is used, the curl and tar tools are feature complete. --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 807eb9afd3..2fbbd162c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,12 @@ FROM nodesource/trusty:0.12 COPY . . -RUN curl -sL http://cldup.com/XPw5-FrHJz.gz | \ - gunzip -c | tar -x -C /tmp/ && \ - mv /tmp/envconsul_0.5.0_linux_amd64/envconsul /usr/bin/ +RUN curl -L https://github.com/hashicorp/envconsul/releases/download/v0.5.0/envconsul_0.5.0_linux_amd64.tar.gz | \ + tar -zx -C /usr/bin/ --strip-components 1 RUN npm install --production && \ npm run build EXPOSE 4242 -CMD envconsul -consul $(route -n | awk '/UG/ {print $2}'):8500 -prefix unleash node server.js \ No newline at end of file +CMD envconsul -consul $(route -n | awk '/UG/ {print $2}'):8500 -prefix unleash node server.js