diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 441c69ed..060bb7f0 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -130,14 +130,14 @@ VOLUME /var/www/html ENV NEXTCLOUD_VERSION %%VERSION%% +ADD %%DOWNLOAD_URL%% nextcloud.tar.bz2 +ADD %%DOWNLOAD_URL_ASC%% nextcloud.tar.bz2.asc RUN set -ex; \ apk add --no-cache --virtual .fetch-deps \ bzip2 \ gnupg \ ; \ \ - curl -fsSL -o nextcloud.tar.bz2 "%%DOWNLOAD_URL%%"; \ - curl -fsSL -o nextcloud.tar.bz2.asc "%%DOWNLOAD_URL_ASC%%"; \ export GNUPGHOME="$(mktemp -d)"; \ # gpg key from https://nextcloud.com/nextcloud.asc gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 839b8620..30a0e868 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -136,7 +136,8 @@ VOLUME /var/www/html %%VARIANT_EXTRAS%% ENV NEXTCLOUD_VERSION %%VERSION%% - +ADD %%DOWNLOAD_URL%% nextcloud.tar.bz2 +ADD %%DOWNLOAD_URL_ASC%% nextcloud.tar.bz2.asc RUN set -ex; \ fetchDeps=" \ gnupg \ @@ -145,8 +146,6 @@ RUN set -ex; \ apt-get update; \ apt-get install -y --no-install-recommends $fetchDeps; \ \ - curl -fsSL -o nextcloud.tar.bz2 "%%DOWNLOAD_URL%%"; \ - curl -fsSL -o nextcloud.tar.bz2.asc "%%DOWNLOAD_URL_ASC%%"; \ export GNUPGHOME="$(mktemp -d)"; \ # gpg key from https://nextcloud.com/nextcloud.asc gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; \