Skip to content

Commit 3c9d8ac

Browse files
committed
feat: install Redis PHP extension in Dockerfile
1 parent b7025ca commit 3c9d8ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ RUN apt-get update && apt-get install -y \
2222

2323
# Install PHP extensions
2424
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
25-
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip
25+
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip \
26+
&& pecl install redis \
27+
&& docker-php-ext-enable redis
2628

2729
# Install Composer
2830
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

0 commit comments

Comments
 (0)