From b570e58958302404a7560c10e4b53a1280b58d80 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Wed, 7 Feb 2018 21:26:20 +0000 Subject: [PATCH] some tidying remove unneeded copy --- Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index be3c1c8..c7f8ee2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,19 +17,20 @@ RUN \ php7-pdo_sqlite \ php7-tokenizer \ tar && \ - mkdir -p /var/www/localhost/heimdall && \ + echo "**** install heimdall ****" && \ VERSION="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \ echo "**Installing Heimdall ${VERSION}**" && \ + mkdir -p \ + /var/www/localhost/heimdall && \ curl -o \ - /tmp/heimdall.tar.gz -L \ - "https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \ + /tmp/heimdall.tar.gz -L \ + "https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \ tar xf \ - /tmp/heimdall.tar.gz -C \ - /tmp && \ - cp -R /tmp/Heimdall-*/* /var/www/localhost/heimdall/ && \ + /tmp/heimdall.tar.gz -C \ + /var/www/localhost/heimdall --strip-components=1 && \ echo "** cleanup **" && \ rm -rf \ - /tmp/* + /tmp/* # add local files COPY root/ /