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
48 changes: 24 additions & 24 deletions .github/workflows/build-php-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,76 +23,76 @@ jobs:
matrix:
include:
- image: php
tag: 8.5-fpm-5
tag: 8.5-fpm-6
context: images/8.5-fpm
- image: php
tag: 8.5-apache-5
tag: 8.5-apache-6
context: images/8.5-apache
- image: php
tag: 8.4-fpm-5
tag: 8.4-fpm-6
context: images/8.4-fpm
- image: php
tag: 8.4-apache-5
tag: 8.4-apache-6
context: images/8.4-apache
- image: php
tag: 8.3-fpm-5
tag: 8.3-fpm-6
context: images/8.3-fpm
- image: php
tag: 8.3-apache-5
tag: 8.3-apache-6
context: images/8.3-apache
- image: php
tag: 8.2-fpm-5
tag: 8.2-fpm-6
context: images/8.2-fpm
- image: php
tag: 8.2-apache-5
tag: 8.2-apache-6
context: images/8.2-apache
- image: php
tag: 8.1-fpm-5
tag: 8.1-fpm-6
context: images/8.1-fpm
- image: php
tag: 8.1-apache-5
tag: 8.1-apache-6
context: images/8.1-apache
- image: php
tag: 8.0-fpm-5
tag: 8.0-fpm-6
context: images/8.0-fpm
- image: php
tag: 8.0-apache-5
tag: 8.0-apache-6
context: images/8.0-apache
- image: php
tag: 7.4-fpm-5
tag: 7.4-fpm-6
context: images/7.4-fpm
- image: php
tag: 7.4-apache-5
tag: 7.4-apache-6
context: images/7.4-apache
- image: php
tag: 7.3-fpm-5
tag: 7.3-fpm-6
context: images/7.3-fpm
- image: php
tag: 7.3-apache-5
tag: 7.3-apache-6
context: images/7.3-apache
- image: php
tag: 7.2-fpm-5
tag: 7.2-fpm-6
context: images/7.2-fpm
- image: php
tag: 7.2-apache-5
tag: 7.2-apache-6
context: images/7.2-apache
- image: php
tag: 7.1-fpm-5
tag: 7.1-fpm-6
context: images/7.1-fpm
- image: php
tag: 7.1-apache-5
tag: 7.1-apache-6
context: images/7.1-apache
- image: php
tag: 7.0-fpm-5
tag: 7.0-fpm-6
context: images/7.0-fpm
- image: php
tag: 7.0-apache-5
tag: 7.0-apache-6
context: images/7.0-apache
- image: php
tag: 5.6-fpm-5
tag: 5.6-fpm-6
context: images/5.6-fpm
- image: php
tag: 5.6-apache-5
tag: 5.6-apache-6
context: images/5.6-apache

steps:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Added support for PHP 8.5
* Added Debian 13 (trixie) base images for PHP 8.3-8.5
* Changed PHP 7.4 and 8.0 images to use MariaDB `archive.mariadb.org` apt repository
* Fixed expired keys preventing stretch-based images from building

## v1.8.0 - [September 2, 2025](https://github.com/lando/php/releases/tag/v1.8.0)

Expand Down
2 changes: 1 addition & 1 deletion builders/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module.exports = {
},
scriptsDir: path.resolve(__dirname, '..', 'scripts'),
sources: [],
suffix: '5',
suffix: '6',
ssl: false,
via: 'apache',
volumes: ['/usr/local/bin'],
Expand Down
13 changes: 9 additions & 4 deletions images/5.6-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# docker build -t devwithlando/php:5.6-apache-5 .
# docker build -t devwithlando/php:5.6-apache-6 .

FROM php:5.6-apache-stretch

# Install dependencies we need
# Debian Stretch has archived repositories and expired keys
RUN \
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list \
&& sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list \
&& sed -i '/stretch-updates/d' /etc/apt/sources.list \
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99ignore-release-date \
&& mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
&& apt-get -qq update -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true -o APT::Get::AllowUnauthenticated=true \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests -o APT::Get::AllowUnauthenticated=true debian-archive-keyring

# Install dependencies
RUN \
mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt-get update && apt-get install -y \
gnupg2 \
wget \
bzip2 \
Expand Down
13 changes: 9 additions & 4 deletions images/5.6-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# docker build -t devwithlando/php:5.6-fpm-5 .
# docker build -t devwithlando/php:5.6-fpm-6 .

FROM php:5.6-fpm-stretch

# Install dependencies we need
# Debian Stretch has archived repositories and expired keys
RUN \
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list \
&& sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list \
&& sed -i '/stretch-updates/d' /etc/apt/sources.list \
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99ignore-release-date \
&& mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
&& apt-get -qq update -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true -o APT::Get::AllowUnauthenticated=true \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests -o APT::Get::AllowUnauthenticated=true debian-archive-keyring

# Install dependencies
RUN \
mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt-get update && apt-get install -y \
gnupg2 \
wget \
bzip2 \
Expand Down
13 changes: 9 additions & 4 deletions images/7.0-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# docker build -t devwithlando/php:7.0-apache-5 .
# docker build -t devwithlando/php:7.0-apache-6 .

FROM php:7.0-apache-stretch

# Install dependencies we need
# Debian Stretch has archived repositories and expired keys
RUN \
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list \
&& sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list \
&& sed -i '/stretch-updates/d' /etc/apt/sources.list \
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99ignore-release-date \
&& mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
&& apt-get -qq update -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true -o APT::Get::AllowUnauthenticated=true \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests -o APT::Get::AllowUnauthenticated=true debian-archive-keyring

# Install dependencies
RUN \
mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt-get update && apt-get install -y \
gnupg2 \
wget \
bzip2 \
Expand Down
13 changes: 9 additions & 4 deletions images/7.0-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# docker build -t devwithlando/php:7.0-fpm-5 .
# docker build -t devwithlando/php:7.0-fpm-6 .

FROM php:7.0-fpm-stretch

# Install dependencies we need
# Debian Stretch has archived repositories and expired keys
RUN \
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list \
&& sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list \
&& sed -i '/stretch-updates/d' /etc/apt/sources.list \
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99ignore-release-date \
&& mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
&& apt-get -qq update -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true -o APT::Get::AllowUnauthenticated=true \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests -o APT::Get::AllowUnauthenticated=true debian-archive-keyring

# Install dependencies
RUN \
mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt-get update && apt-get install -y \
gnupg2 \
wget \
bzip2 \
Expand Down
2 changes: 1 addition & 1 deletion images/7.1-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.1-apache-5 .
# docker build -t devwithlando/php:7.1-apache-6 .

FROM php:7.1-apache-buster

Expand Down
2 changes: 1 addition & 1 deletion images/7.1-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.1-fpm-5 .
# docker build -t devwithlando/php:7.1-fpm-6 .

FROM php:7.1-fpm-buster

Expand Down
2 changes: 1 addition & 1 deletion images/7.2-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.2-apache-5 .
# docker build -t devwithlando/php:7.2-apache-6 .

FROM php:7.2-apache-buster

Expand Down
2 changes: 1 addition & 1 deletion images/7.2-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.2-fpm-5 .
# docker build -t devwithlando/php:7.2-fpm-6 .

FROM php:7.2-fpm-buster

Expand Down
2 changes: 1 addition & 1 deletion images/7.3-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.3-apache-5 .
# docker build -t devwithlando/php:7.3-apache-6 .

FROM php:7.3-apache-bullseye

Expand Down
2 changes: 1 addition & 1 deletion images/7.3-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.3-fpm-5 .
# docker build -t devwithlando/php:7.3-fpm-6 .

FROM php:7.3-fpm-bullseye

Expand Down
4 changes: 2 additions & 2 deletions images/7.4-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.4-apache-5 .
# docker build -t devwithlando/php:7.4-apache-6 .

FROM php:7.4-apache-bullseye

Expand All @@ -8,7 +8,7 @@ RUN \
# MariaDB client compatibility (https://github.com/lando/php/issues/120)
mkdir -p /etc/apt/keyrings \
&& curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp' \
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://archive.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list

RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions images/7.4-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:7.4-fpm-5 .
# docker build -t devwithlando/php:7.4-fpm-6 .

FROM php:7.4-fpm-bullseye

Expand All @@ -8,7 +8,7 @@ RUN \
# MariaDB client compatibility (https://github.com/lando/php/issues/120)
mkdir -p /etc/apt/keyrings \
&& curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp' \
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://archive.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list

RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions images/8.0-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:8.0-apache-5 .
# docker build -t devwithlando/php:8.0-apache-6 .

FROM php:8.0-apache-bullseye

Expand All @@ -8,7 +8,7 @@ RUN \
# MariaDB client compatibility (https://github.com/lando/php/issues/120)
mkdir -p /etc/apt/keyrings \
&& curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp' \
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://archive.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list

RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions images/8.0-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:8.0-fpm-5 .
# docker build -t devwithlando/php:8.0-fpm-6 .

FROM php:8.0-fpm-bullseye

Expand All @@ -8,7 +8,7 @@ RUN \
# MariaDB client compatibility (https://github.com/lando/php/issues/120)
mkdir -p /etc/apt/keyrings \
&& curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp' \
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://archive.mariadb.org/repo/10.5/debian bullseye main" > /etc/apt/sources.list.d/mariadb.list

RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
Expand Down
2 changes: 1 addition & 1 deletion images/8.1-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:8.1-apache-5 .
# docker build -t devwithlando/php:8.1-apache-6 .

FROM php:8.1-apache-bookworm

Expand Down
2 changes: 1 addition & 1 deletion images/8.1-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:8.1-fpm-5 .
# docker build -t devwithlando/php:8.1-fpm-6 .

FROM php:8.1-fpm-bookworm

Expand Down
2 changes: 1 addition & 1 deletion images/8.2-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:8.2-apache-5 .
# docker build -t devwithlando/php:8.2-apache-6 .

FROM php:8.2-apache-bookworm

Expand Down
2 changes: 1 addition & 1 deletion images/8.2-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker build -t devwithlando/php:8.2-fpm-5 .
# docker build -t devwithlando/php:8.2-fpm-6 .

FROM php:8.2-fpm-bookworm

Expand Down
30 changes: 8 additions & 22 deletions images/8.3-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
# docker build -t devwithlando/php:8.3-apache-5 .
# docker build -t devwithlando/php:8.3-apache-6 .

FROM php:8.3-apache-bookworm
FROM php:8.3-apache-trixie

ARG TARGETARCH

ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN \
# MariaDB client compatibility (https://github.com/lando/php/issues/120)
mkdir -p /etc/apt/keyrings \
&& curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp' \
&& echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] https://mirror.mariadb.org/repo/10.11/debian bookworm main" > /etc/apt/sources.list.d/mariadb.list

# Drupal 11 requires sqlite3 3.45+
ARG SQLITE_VERSION=3.45.1
RUN \
curl -Lo /tmp/sqlite3.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/sqlite3_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \
&& curl -Lo /tmp/libsqlite3-0.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/libsqlite3-0_${SQLITE_VERSION}-1_${TARGETARCH}.deb" \
&& curl -Lo /tmp/libsqlite3-dev.deb "https://snapshot.debian.org/archive/debian/20240506T211830Z/pool/main/s/sqlite3/libsqlite3-dev_${SQLITE_VERSION}-1_${TARGETARCH}.deb"

RUN \
mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
&& apt -y update && apt-get install -y \
default-mysql-client \
exiftool \
git-core \
libimage-exiftool-perl \
git \
gnupg2 \
imagemagick \
postgresql-client-15 \
mariadb-client \
mariadb-client-compat \
postgresql-client-17 \
pv \
rsync \
ssh \
unzip \
wget \
/tmp/sqlite3.deb \
/tmp/libsqlite3-0.deb \
/tmp/libsqlite3-dev.deb
wget

RUN \
install-php-extensions @fix_letsencrypt \
Expand Down
Loading
Loading