mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-28 11:37:41 +09:00
some tidying remove unneeded copy
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -17,19 +17,20 @@ RUN \
|
|||||||
php7-pdo_sqlite \
|
php7-pdo_sqlite \
|
||||||
php7-tokenizer \
|
php7-tokenizer \
|
||||||
tar && \
|
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)" && \
|
VERSION="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
|
||||||
echo "**Installing Heimdall ${VERSION}**" && \
|
echo "**Installing Heimdall ${VERSION}**" && \
|
||||||
|
mkdir -p \
|
||||||
|
/var/www/localhost/heimdall && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/heimdall.tar.gz -L \
|
/tmp/heimdall.tar.gz -L \
|
||||||
"https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \
|
"https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/heimdall.tar.gz -C \
|
/tmp/heimdall.tar.gz -C \
|
||||||
/tmp && \
|
/var/www/localhost/heimdall --strip-components=1 && \
|
||||||
cp -R /tmp/Heimdall-*/* /var/www/localhost/heimdall/ && \
|
|
||||||
echo "** cleanup **" && \
|
echo "** cleanup **" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
Reference in New Issue
Block a user