mirror of
https://github.com/danog/php.git
synced 2024-11-27 04:14:56 +01:00
Fix "gpg" usage to stop relying on deprecated and insecure behavior
This commit is contained in:
parent
7bd5c38db9
commit
8943e1e6a9
@ -38,7 +38,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -51,7 +51,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -39,7 +39,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -39,7 +39,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -38,7 +38,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -51,7 +51,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -39,7 +39,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -39,7 +39,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -38,7 +38,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -51,7 +51,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -39,7 +39,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
@ -39,7 +39,7 @@ RUN buildDeps=" \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o "$PHP_FILENAME" \
|
||||
&& echo "$PHP_SHA256 *$PHP_FILENAME" | sha256sum -c - \
|
||||
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
|
||||
&& gpg --verify "$PHP_FILENAME.asc" \
|
||||
&& gpg --batch --verify "$PHP_FILENAME.asc" "$PHP_FILENAME" \
|
||||
&& mkdir -p /usr/src/php \
|
||||
&& tar -xf "$PHP_FILENAME" -C /usr/src/php --strip-components=1 \
|
||||
&& rm "$PHP_FILENAME"* \
|
||||
|
Loading…
Reference in New Issue
Block a user