Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ unoptimized, unmaintained)
[`gd`](https://www.php.net/manual/en/book.image.php) with PNG, WebP, AVIF, FreeType fonts support
[`gettext`](https://www.php.net/manual/en/book.gettext.php),
[`gmp`](https://www.php.net/manual/en/book.gmp.php),
[`imap`](https://www.php.net/manual/en/book.imap.php) (up to PHP 8.3),
[`intl`](https://www.php.net/manual/en/book.intl.php),
[`memcached`](https://www.php.net/manual/en/book.memcached.php),
[`mysqli`](https://www.php.net/manual/en/book.mysqli.php),
Expand All @@ -87,6 +86,14 @@ unoptimized, unmaintained)
- timezones are correctly supported
- optimized for small image size and short load times

### Removed extensions

Certain PHP extensions have been intentionally excluded from these images because they are deprecated and interfere with
compatibility with important updates of other components.

| Package | Available up to | Reason to remove |
|---------|--------------------------------------------------------------------------------|--------------------------|
| `imap` | `8.3.24`, `8.2.28`, and `8.1.32`, and remains in legacy images (8.0 and older) | incompatible w/Debian 13 |

## Basic usage
Copy the [`docker-compose.yml`](docker-compose.yml) file
Expand Down
20 changes: 10 additions & 10 deletions check-pulls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# shellcheck disable=SC2086
set -eux;

docker pull php:8.1-cli-bookworm
docker pull php:8.1-apache-bookworm
docker pull php:8.2-cli-bookworm
docker pull php:8.2-apache-bookworm
docker pull php:8.3-cli-bookworm
docker pull php:8.3-apache-bookworm
docker pull php:8.4-cli-bookworm
docker pull php:8.4-apache-bookworm
docker pull php:8.5-rc-cli-bookworm
docker pull php:8.5-rc-apache-bookworm
docker pull php:8.1-cli-trixie
docker pull php:8.1-apache-trixie
docker pull php:8.2-cli-trixie
docker pull php:8.2-apache-trixie
docker pull php:8.3-cli-trixie
docker pull php:8.3-apache-trixie
docker pull php:8.4-cli-trixie
docker pull php:8.4-apache-trixie
docker pull php:8.5-rc-cli-trixie
docker pull php:8.5-rc-apache-trixie

docker pull mariadb:10.6
docker pull mariadb:10.11
Expand Down
44 changes: 20 additions & 24 deletions php/Dockerfile-8.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-apache-bookworm
FROM php:8.1-apache-trixie

LABEL maintainer="Jakub Bouček <[email protected]>"
LABEL org.label-schema.name="PHP 8.1 (Apache module)"
Expand All @@ -8,20 +8,18 @@ LABEL org.label-schema.vcs-url="https://github.com/jakubboucek/docker-lamp-devst
WORKDIR /tmp

# Use local mirrors to install Debian updates
COPY sources.list-bookworm /etc/apt/sources.list
COPY sources.list-trixie /etc/apt/sources.list

# Prevent interactive block
ARG DEBIAN_FRONTEND=noninteractive

ARG EXTENSION_DEV_DEPS=" \
libavif-dev \
libbz2-dev \
libc-client-dev \
libfreetype6-dev \
libgmp-dev \
libicu-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libmemcached-dev \
libpng-dev \
libsodium-dev \
Expand All @@ -32,35 +30,36 @@ ARG EXTENSION_DEV_DEPS=" \
"

ARG EXTENSION_RUNTIME_DEPS=" \
libabsl20220623 \
libabsl20240722 \
libaom3 \
libavif15 \
libavif16 \
libbrotli1 \
libc-client2007e \
libdav1d6 \
libbz2-1.0 \
libdav1d7 \
libfreetype6 \
libgav1-1 \
libgcrypt20 \
libgmp10 \
libgssapi-krb5-2 \
libhashkit2 \
libicu72 \
libgpg-error0 \
libhashkit2t64 \
libicu76 \
libjpeg62-turbo \
libk5crypto3 \
libkrb5-3 \
libkrb5support0 \
libmemcached11 \
libpng16-16 \
librav1e0 \
liblzma5 \
libmemcached11t64 \
libpng16-16t64 \
librav1e0.7 \
libsasl2-2 \
libsharpyuv0 \
libsodium23 \
libssl3 \
libsvtav1enc1 \
libssl3t64 \
libsvtav1enc2 \
libwebp7 \
libxml2 \
libxslt1.1 \
libyuv0 \
libzip4 \
libzip5 \
libzstd1 \
zlib1g \
"

# OS binaries install && update critical binaries
Expand All @@ -77,8 +76,6 @@ RUN set -eux; \
zip; \
docker-php-ext-configure \
gd --with-avif --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure \
imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
Expand All @@ -87,7 +84,6 @@ RUN set -eux; \
gd \
gettext \
gmp \
imap \
intl \
mysqli \
opcache \
Expand All @@ -107,9 +103,9 @@ RUN set -eux; \
expires \
headers \
rewrite; \
pecl clear-cache; \
apt-mark manual ${EXTENSION_RUNTIME_DEPS}; \
apt-get purge -y --auto-remove ${EXTENSION_DEV_DEPS}; \
pecl clear-cache; \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
Expand Down
44 changes: 20 additions & 24 deletions php/Dockerfile-8.1-cli
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-cli-bookworm
FROM php:8.1-cli-trixie

LABEL maintainer="Jakub Bouček <[email protected]>"
LABEL org.label-schema.name="PHP 8.1 (CLI)"
Expand All @@ -8,20 +8,18 @@ LABEL org.label-schema.vcs-url="https://github.com/jakubboucek/docker-lamp-devst
WORKDIR /tmp

# Use local mirrors to install Debian updates
COPY sources.list-bookworm /etc/apt/sources.list
COPY sources.list-trixie /etc/apt/sources.list

# Prevent interactive block
ARG DEBIAN_FRONTEND=noninteractive

ARG EXTENSION_DEV_DEPS=" \
libavif-dev \
libbz2-dev \
libc-client-dev \
libfreetype6-dev \
libgmp-dev \
libicu-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libmemcached-dev \
libpng-dev \
libsodium-dev \
Expand All @@ -32,35 +30,36 @@ ARG EXTENSION_DEV_DEPS=" \
"

ARG EXTENSION_RUNTIME_DEPS=" \
libabsl20220623 \
libabsl20240722 \
libaom3 \
libavif15 \
libavif16 \
libbrotli1 \
libc-client2007e \
libdav1d6 \
libbz2-1.0 \
libdav1d7 \
libfreetype6 \
libgav1-1 \
libgcrypt20 \
libgmp10 \
libgssapi-krb5-2 \
libhashkit2 \
libicu72 \
libgpg-error0 \
libhashkit2t64 \
libicu76 \
libjpeg62-turbo \
libk5crypto3 \
libkrb5-3 \
libkrb5support0 \
libmemcached11 \
libpng16-16 \
librav1e0 \
liblzma5 \
libmemcached11t64 \
libpng16-16t64 \
librav1e0.7 \
libsasl2-2 \
libsharpyuv0 \
libsodium23 \
libssl3 \
libsvtav1enc1 \
libssl3t64 \
libsvtav1enc2 \
libwebp7 \
libxml2 \
libxslt1.1 \
libyuv0 \
libzip4 \
libzip5 \
libzstd1 \
zlib1g \
"

# OS binaries install && update critical binaries
Expand All @@ -77,8 +76,6 @@ RUN set -eux; \
zip; \
docker-php-ext-configure \
gd --with-avif --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure \
imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
Expand All @@ -87,7 +84,6 @@ RUN set -eux; \
gd \
gettext \
gmp \
imap \
intl \
mysqli \
opcache \
Expand All @@ -103,9 +99,9 @@ RUN set -eux; \
zip; \
pecl install memcached; \
docker-php-ext-enable memcached; \
pecl clear-cache; \
apt-mark manual ${EXTENSION_RUNTIME_DEPS}; \
apt-get purge -y --auto-remove ${EXTENSION_DEV_DEPS}; \
pecl clear-cache; \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
Expand Down
44 changes: 20 additions & 24 deletions php/Dockerfile-8.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2-apache-bookworm
FROM php:8.2-apache-trixie

LABEL maintainer="Jakub Bouček <[email protected]>"
LABEL org.label-schema.name="PHP 8.2 (Apache module)"
Expand All @@ -8,20 +8,18 @@ LABEL org.label-schema.vcs-url="https://github.com/jakubboucek/docker-lamp-devst
WORKDIR /tmp

# Use local mirrors to install Debian updates
COPY sources.list-bookworm /etc/apt/sources.list
COPY sources.list-trixie /etc/apt/sources.list

# Prevent interactive block
ARG DEBIAN_FRONTEND=noninteractive

ARG EXTENSION_DEV_DEPS=" \
libavif-dev \
libbz2-dev \
libc-client-dev \
libfreetype6-dev \
libgmp-dev \
libicu-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libmemcached-dev \
libpng-dev \
libsodium-dev \
Expand All @@ -32,35 +30,36 @@ ARG EXTENSION_DEV_DEPS=" \
"

ARG EXTENSION_RUNTIME_DEPS=" \
libabsl20220623 \
libabsl20240722 \
libaom3 \
libavif15 \
libavif16 \
libbrotli1 \
libc-client2007e \
libdav1d6 \
libbz2-1.0 \
libdav1d7 \
libfreetype6 \
libgav1-1 \
libgcrypt20 \
libgmp10 \
libgssapi-krb5-2 \
libhashkit2 \
libicu72 \
libgpg-error0 \
libhashkit2t64 \
libicu76 \
libjpeg62-turbo \
libk5crypto3 \
libkrb5-3 \
libkrb5support0 \
libmemcached11 \
libpng16-16 \
librav1e0 \
liblzma5 \
libmemcached11t64 \
libpng16-16t64 \
librav1e0.7 \
libsasl2-2 \
libsharpyuv0 \
libsodium23 \
libssl3 \
libsvtav1enc1 \
libssl3t64 \
libsvtav1enc2 \
libwebp7 \
libxml2 \
libxslt1.1 \
libyuv0 \
libzip4 \
libzip5 \
libzstd1 \
zlib1g \
"

# OS binaries install && update critical binaries
Expand All @@ -77,8 +76,6 @@ RUN set -eux; \
zip; \
docker-php-ext-configure \
gd --with-avif --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure \
imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
Expand All @@ -87,7 +84,6 @@ RUN set -eux; \
gd \
gettext \
gmp \
imap \
intl \
mysqli \
opcache \
Expand All @@ -107,9 +103,9 @@ RUN set -eux; \
expires \
headers \
rewrite; \
pecl clear-cache; \
apt-mark manual ${EXTENSION_RUNTIME_DEPS}; \
apt-get purge -y --auto-remove ${EXTENSION_DEV_DEPS}; \
pecl clear-cache; \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
Expand Down
Loading