Last active
July 8, 2023 09:45
-
-
Save FoxCouncil/186e85f6d1b01d9bf88e2a45a4bb706f to your computer and use it in GitHub Desktop.
Dockerfile to use Bitnami's PHP-FPM latest, but with Redis 5.3.7 support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1 | |
FROM bitnami/php-fpm | |
RUN apt-get update && apt-get install -y \ | |
autoconf \ | |
build-essential \ | |
wget | |
RUN cd /root \ | |
&& wget https://pecl.php.net/get/redis-5.3.7.tgz \ | |
&& tar xzf redis-5.3.7.tgz && cd redis-5.3.7 \ | |
&& phpize \ | |
&& ./configure \ | |
&& make \ | |
&& make install | |
RUN echo "extension=redis.so" >> /opt/bitnami/php/etc/php.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment