diff --git a/Dockerfile b/Dockerfile index 6785202..101f102 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Which versions? ARG PHP_VERSION=8.3.15 ARG REDIS_EXT_VERSION=6.1.0 +ARG MEMCACHED_EXT_VERSION=3.3.0 ARG IMAGICK_EXT_VERSION=3.7.0 ARG PCOV_EXT_VERSION=1.0.12 ARG HTTPD_VERSION=2.4.62 @@ -12,6 +13,7 @@ ARG COMPOSER_VERSION=2.8.4 FROM --platform=linux/amd64 heroku/heroku:24-build AS stage-amd64 ARG PHP_VERSION ARG REDIS_EXT_VERSION +ARG MEMCACHED_EXT_VERSION ARG IMAGICK_EXT_VERSION ARG PCOV_EXT_VERSION ARG HTTPD_VERSION @@ -33,6 +35,7 @@ RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-he # Install PHP RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-amd64-stable/php-$PHP_VERSION.tar.gz | tar xz -C /app/.heroku/php RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-amd64-stable/extensions/no-debug-non-zts-20230831/redis-$REDIS_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php +RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-amd64-stable/extensions/no-debug-non-zts-20230831/memcached-$MEMCACHED_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-amd64-stable/extensions/no-debug-non-zts-20230831/imagick-$IMAGICK_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-amd64-stable/extensions/no-debug-non-zts-20230831/pcov-$PCOV_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php @@ -46,6 +49,7 @@ RUN curl --silent --location https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_ FROM --platform=linux/arm64 heroku/heroku:24-build AS stage-arm64 ARG PHP_VERSION ARG REDIS_EXT_VERSION +ARG MEMCACHED_EXT_VERSION ARG IMAGICK_EXT_VERSION ARG PCOV_EXT_VERSION ARG HTTPD_VERSION @@ -67,6 +71,7 @@ RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-he # Install PHP RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-arm64-stable/php-$PHP_VERSION.tar.gz | tar xz -C /app/.heroku/php RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-arm64-stable/extensions/no-debug-non-zts-20230831/redis-$REDIS_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php +RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-arm64-stable/extensions/no-debug-non-zts-20230831/memcached-$MEMCACHED_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-arm64-stable/extensions/no-debug-non-zts-20230831/imagick-$IMAGICK_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php RUN curl --silent --location https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-24-arm64-stable/extensions/no-debug-non-zts-20230831/pcov-$PCOV_EXT_VERSION.tar.gz | tar xz -C /app/.heroku/php @@ -119,6 +124,7 @@ RUN echo "\n\ extension=pcntl.so \n\ extension=pcov.so \n\ extension=redis.so \n\ + extension=memcached.so \n\ extension=imagick.so \n\ extension=shmop.so \n\ extension=soap.so \n\ diff --git a/README.md b/README.md index ee28cce..23d416e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Usage: `FROM ghcr.io/robuust/heroku-php` * Heroku 24 * Apache * Nginx -* PHP 8.3.x with Redis, Imagick and PCov +* PHP 8.3.x with Redis, Memcached, Imagick and PCov * Composer 2 * Node 22.x * Yarn 4.x