Skip to content

Commit

Permalink
Merge pull request #141 from GrahamCampbell/php-versions
Browse files Browse the repository at this point in the history
Upgrade to PHP 8.1.26, 8.2.13 and 8.3.0
  • Loading branch information
mnapoli committed Nov 23, 2023
2 parents facec03 + a379986 commit 4ce0a7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion php-81/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ARG IMAGE_VERSION_SUFFIX

# https://www.php.net/downloads
ARG VERSION_PHP=8.1.25
ARG VERSION_PHP=8.1.26


# Lambda uses a custom AMI named Amazon Linux 2
Expand Down
2 changes: 1 addition & 1 deletion php-82/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ARG IMAGE_VERSION_SUFFIX

# https://www.php.net/downloads
ARG VERSION_PHP=8.2.12
ARG VERSION_PHP=8.2.13


# Lambda uses a custom AMI named Amazon Linux 2
Expand Down
6 changes: 2 additions & 4 deletions php-83/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
ARG IMAGE_VERSION_SUFFIX

# https://www.php.net/downloads
ARG DOWNLOAD_USER=eric
ARG VERSION_PHP=8.3.0RC6
ARG VERSION_PHP=8.3.0


# Lambda uses a custom AMI named Amazon Linux 2
Expand Down Expand Up @@ -382,9 +381,8 @@ WORKDIR ${PHP_BUILD_DIR}
# --location will follow redirects
# --silent will hide the progress, but also the errors: we restore error messages with --show-error
# --fail makes sure that curl returns an error instead of fetching the 404 page
ARG DOWNLOAD_USER
ARG VERSION_PHP
RUN curl --location --silent --show-error --fail https://downloads.php.net/~${DOWNLOAD_USER}/php-${VERSION_PHP}.tar.gz \
RUN curl --location --silent --show-error --fail https://www.php.net/get/php-${VERSION_PHP}.tar.gz/from/this/mirror \
| tar xzC . --strip-components=1

# Configure the build
Expand Down

0 comments on commit 4ce0a7f

Please sign in to comment.