Skip to content

Commit daeb668

Browse files
committed
use github sources
1 parent 49cd9f6 commit daeb668

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/root/usr/local/bin/docker-php-source

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ usage() {
2222
case "${1:-}" in
2323
extract)
2424
mkdir -p "${PHP_SRC_DIR}"
25-
if [[ ! -f "${PHP_SRC_DIR}/.docker-extracted" ]]; then
26-
docker-package-download -o "${PHP_SRC_FILE}" "${PHP_URL}"
27-
echo "${PHP_SHA256} ${PHP_SRC_FILE}" | sha256sum -c -
28-
tar --strip-components=1 -C "${PHP_SRC_DIR}" -xzf "${PHP_SRC_FILE}"
29-
touch "${PHP_SRC_DIR}/.docker-extracted"
30-
fi
25+
if [[ ! -f "${PHP_SRC_DIR}/.docker-extracted" ]]; then
26+
docker-package-download -o "${PHP_SRC_FILE}" "https://codeload.github.com/php/php-src/tar.gz/PHP-${PHP_VERSION}"
27+
tar --strip-components=1 -C "${PHP_SRC_DIR}" -xzf "${PHP_SRC_FILE}"
28+
touch "${PHP_SRC_DIR}/.docker-extracted"
29+
fi
3130
;;
3231

3332
delete)

0 commit comments

Comments
 (0)