Skip to content

Instantly share code, notes, and snippets.

@FoxCouncil
Last active July 8, 2023 09:45
Show Gist options
  • Save FoxCouncil/186e85f6d1b01d9bf88e2a45a4bb706f to your computer and use it in GitHub Desktop.
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
# 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