Skip to content

Commit 9042d47

Browse files
committed
feat: adds redis php extension
1 parent a7f5882 commit 9042d47

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 31 (2025-06-10)
4+
5+
- Adds `Redis` PHP extension
6+
37
## 30 (2025-05-31)
48

59
- Adds `woff`, `ttf`, and `svg` to cached locations

Dockerfile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ RUN apk add --no-cache --update \
3434
zlib~=1 \
3535
zlib-dev~=1 \
3636
zip~=3 \
37+
# Install Redis
38+
autoconf \
39+
gcc \
40+
g++ \
41+
make \
42+
libc-dev \
43+
&& pecl install \
44+
redis \
45+
&& docker-php-ext-enable \
46+
redis \
3747
# Configure image library
3848
&& docker-php-ext-configure gd \
3949
--with-jpeg \
@@ -48,7 +58,18 @@ RUN apk add --no-cache --update \
4858
pdo_mysql \
4959
zip \
5060
# Remove dev packages once we're done using them
51-
&& apk del icu-dev freetype-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev \
61+
&& apk del \
62+
autoconf \
63+
freetype-dev \
64+
g++ \
65+
gcc \
66+
icu-dev \
67+
libc-dev \
68+
libjpeg-turbo-dev \
69+
libpng-dev \
70+
libwebp-dev \
71+
libzip-dev \
72+
make \
5273
# Cleanup apk add
5374
&& rm -rf /var/cache/apk/* /tmp/* \
5475
# Setup directories and permissions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ The following features work out of the box without any configuration:
2424
- `Nginx` serves as the web host and reverse proxy
2525
- `npm` and `node` are installed for all your Node dependencies and scripts
2626
- `PHP-FPM/OPcache` for fast performance in the browser and on the CLI
27-
- `zip` is installed for items that may need it (eg: Laravel, CSV)
27+
- `Redis` extension is installed for caching
28+
- `zip` is installed for items that may need it (eg: Laravel, CSV/Excel)
2829

2930
## Platforms
3031

0 commit comments

Comments
 (0)