Add Redis to Dockerfie

This commit is contained in:
Christopher C. Wells 2021-04-23 22:34:12 -07:00
parent 600bb9b2e9
commit 96fbcd1b7d
1 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@ FROM php:8.0-fpm-alpine
RUN apk add --no-cache --virtual \
.build-deps \
$PHPIZE_DEPS \
${PHPIZE_DEPS} \
bash \
freetype-dev \
git \
@ -15,6 +15,7 @@ RUN apk add --no-cache --virtual \
oniguruma-dev \
openssh-client \
openssl \
pcre-dev \
postgresql-dev \
rsync \
zlib-dev
@ -34,6 +35,10 @@ RUN docker-php-ext-install \
pcntl \
zip
# Install PECL extensions.
RUN pecl install redis
RUN docker-php-ext-enable redis
# Install composer.
ENV COMPOSER_HOME /composer
ENV PATH ./vendor/bin:/composer/vendor/bin:$PATH