diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index d0e7384..1611ca0 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -22,10 +22,10 @@ RUN set -ex; \ libzip-dev \ ; \ \ - mkdir -p /usr/src/php/ext/uploadprogress; \ - curl -fsSL -o /usr/src/php/ext/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ - echo "$UPLOAD_PROGRESS_SHA256 /usr/src/php/ext/uploadprogress.tar.gz" | sha256sum -c -; \ - tar -xf /usr/src/php/ext/uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \ + mkdir -p /tmp/uploadprogress; \ + curl -fsSL -o /tmp/uploadprogress/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ + echo "$UPLOAD_PROGRESS_SHA256 /tmp/uploadprogress/uploadprogress.tar.gz" | sha256sum -c -; \ + tar -xf /tmp/uploadprogress/uploadprogress.tar.gz -C /tmp/uploadprogress --strip-components=1; \ \ docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ docker-php-ext-install -j "$(nproc)" \ @@ -35,10 +35,10 @@ RUN set -ex; \ opcache \ zip \ bcmath \ - uploadprogress \ + /tmp/uploadprogress \ ; \ \ - rm -r /usr/src/php/ext/uploadprogress /usr/src/php/ext/uploadprogress.tar.gz; \ + rm -r /tmp/uploadprogress; \ \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 0cc1150..f8b424b 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -24,10 +24,10 @@ RUN set -ex; \ libzip-dev \ ; \ \ - mkdir -p /usr/src/php/ext/uploadprogress; \ - curl -fsSL -o /usr/src/php/ext/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ - echo "$UPLOAD_PROGRESS_SHA256 /usr/src/php/ext/uploadprogress.tar.gz" | sha256sum -c -; \ - tar -xf /usr/src/php/ext/uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \ + mkdir -p /tmp/uploadprogress; \ + curl -fsSL -o /tmp/uploadprogress/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ + echo "$UPLOAD_PROGRESS_SHA256 /tmp/uploadprogress/uploadprogress.tar.gz" | sha256sum -c -; \ + tar -xf /tmp/uploadprogress/uploadprogress.tar.gz -C /tmp/uploadprogress --strip-components=1; \ \ docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ docker-php-ext-install -j "$(nproc)" \ @@ -37,10 +37,10 @@ RUN set -ex; \ opcache \ zip \ bcmath \ - uploadprogress \ + /tmp/uploadprogress \ ; \ \ - rm -r /usr/src/php/ext/uploadprogress /usr/src/php/ext/uploadprogress.tar.gz; \ + rm -r /tmp/uploadprogress; \ \ apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/apache/Dockerfile b/apache/Dockerfile index 0ed8edc..eaf234e 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -25,10 +25,10 @@ RUN set -ex; \ libzip-dev \ ; \ \ - mkdir -p /usr/src/php/ext/uploadprogress; \ - curl -fsSL -o /usr/src/php/ext/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ - echo "$UPLOAD_PROGRESS_SHA256 /usr/src/php/ext/uploadprogress.tar.gz" | sha256sum -c -; \ - tar -xf /usr/src/php/ext/uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \ + mkdir -p /tmp/uploadprogress; \ + curl -fsSL -o /tmp/uploadprogress/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ + echo "$UPLOAD_PROGRESS_SHA256 /tmp/uploadprogress/uploadprogress.tar.gz" | sha256sum -c -; \ + tar -xf /tmp/uploadprogress/uploadprogress.tar.gz -C /tmp/uploadprogress --strip-components=1; \ \ docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ docker-php-ext-install -j "$(nproc)" \ @@ -38,10 +38,10 @@ RUN set -ex; \ opcache \ zip \ bcmath \ - uploadprogress \ + /tmp/uploadprogress \ ; \ \ - rm -r /usr/src/php/ext/uploadprogress /usr/src/php/ext/uploadprogress.tar.gz; \ + rm -r /tmp/uploadprogress; \ \ apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/fpm-alpine/Dockerfile b/fpm-alpine/Dockerfile index 027293c..dcac4fc 100644 --- a/fpm-alpine/Dockerfile +++ b/fpm-alpine/Dockerfile @@ -23,10 +23,10 @@ RUN set -ex; \ libzip-dev \ ; \ \ - mkdir -p /usr/src/php/ext/uploadprogress; \ - curl -fsSL -o /usr/src/php/ext/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ - echo "$UPLOAD_PROGRESS_SHA256 /usr/src/php/ext/uploadprogress.tar.gz" | sha256sum -c -; \ - tar -xf /usr/src/php/ext/uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \ + mkdir -p /tmp/uploadprogress; \ + curl -fsSL -o /tmp/uploadprogress/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ + echo "$UPLOAD_PROGRESS_SHA256 /tmp/uploadprogress/uploadprogress.tar.gz" | sha256sum -c -; \ + tar -xf /tmp/uploadprogress/uploadprogress.tar.gz -C /tmp/uploadprogress --strip-components=1; \ \ docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ docker-php-ext-install -j "$(nproc)" \ @@ -36,10 +36,10 @@ RUN set -ex; \ opcache \ zip \ bcmath \ - uploadprogress \ + /tmp/uploadprogress \ ; \ \ - rm -r /usr/src/php/ext/uploadprogress /usr/src/php/ext/uploadprogress.tar.gz; \ + rm -r /tmp/uploadprogress; \ \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ diff --git a/fpm/Dockerfile b/fpm/Dockerfile index e123445..4b6fc4b 100644 --- a/fpm/Dockerfile +++ b/fpm/Dockerfile @@ -25,10 +25,10 @@ RUN set -ex; \ libzip-dev \ ; \ \ - mkdir -p /usr/src/php/ext/uploadprogress; \ - curl -fsSL -o /usr/src/php/ext/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ - echo "$UPLOAD_PROGRESS_SHA256 /usr/src/php/ext/uploadprogress.tar.gz" | sha256sum -c -; \ - tar -xf /usr/src/php/ext/uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \ + mkdir -p /tmp/uploadprogress; \ + curl -fsSL -o /tmp/uploadprogress/uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \ + echo "$UPLOAD_PROGRESS_SHA256 /tmp/uploadprogress/uploadprogress.tar.gz" | sha256sum -c -; \ + tar -xf /tmp/uploadprogress/uploadprogress.tar.gz -C /tmp/uploadprogress --strip-components=1; \ \ docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ docker-php-ext-install -j "$(nproc)" \ @@ -38,10 +38,10 @@ RUN set -ex; \ opcache \ zip \ bcmath \ - uploadprogress \ + /tmp/uploadprogress \ ; \ \ - rm -r /usr/src/php/ext/uploadprogress /usr/src/php/ext/uploadprogress.tar.gz; \ + rm -r /tmp/uploadprogress; \ \ apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \