Skip to content

Commit

Permalink
Fix Docker Build
Browse files Browse the repository at this point in the history
  • Loading branch information
h2ouw8n4 committed Nov 6, 2023
1 parent 3e81157 commit d951886
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL authors="Derek Muensterman - https://github.com/h2ouw8n4"

# Install Memcache PHP extension
RUN apt-get update && \
apt-get install -y unzip zlib1g-dev && \
apt-get install -y unzip zlib1g zlib1g-dev libssl-dev && \
pecl install memcache && \
docker-php-ext-enable memcache

Expand All @@ -13,8 +13,10 @@ RUN curl -o w3-total-cache.zip -L -O https://downloads.wordpress.org/plugin/w3-t
unzip w3-total-cache.zip -d /usr/src/wordpress/wp-content/plugins && \
rm w3-total-cache.zip

RUN curl -o latest-64bit -L -O https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.0/latest-64bit-X86-openssl3 && \
RUN curl -o latest-64bit -L -O https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-8.0/latest-64bit-arm-openssl1.1 && \
tar -zxvf latest-64bit && \
chmod o+x ./amazon-elasticache-cluster-client.so && \
chown root:root ./amazon-elasticache-cluster-client.so && \
mv ./amazon-elasticache-cluster-client.so /usr/local/lib/php/extensions/no-debug-non-zts*/ && \
echo "extension=amazon-elasticache-cluster-client.so" | tee --append /usr/local/etc/php/conf.d/50-memcached.ini

Expand Down

0 comments on commit d951886

Please sign in to comment.