mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-24 10:13:22 -05:00
Install the extension from the folder directly
Ref: https://github.com/docker-library/official-images/pull/20045 As advised on https://github.com/docker-library/official-images/pull/20045
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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; \
|
||||
|
||||
+6
-6
@@ -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; \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
+6
-6
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user